I am running Perspective in v8.1.42 and I have a web dev mounted folder that I can read from but I cannot write to it.
I want to know if this behavior is a permissions issue?
The web dev mountedFolder is linked to the following:
/var/ignition/Photos/
and I can read from that location just fine - for example
/system/webdev/projectName/mountedFolder/image.png
This is the code that actually works. Both options actually indicate success which tells me Ignition thinks it is writing somewhere when using the mountedFolder path below.
pathBase = "/var/ignition/Photos/" #<-- this works
# pathBase = "/system/webdev/projectName/mountedFolder/" #<-- does not work
newPath = pathBase + "image.png"
dest = File(newPath)
parent = dest.getParentFile()
if not parent.exists():
parent.mkdirs()
event.file.copyTo(dest)
I have no issue setting an image component source property to either of the options presented above indicating I do have read permissions available.
Any input is appreciated.