Can read from a mounted folder but cannot write to it

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.

You have a forward slash at both the end of the base, and the beginning of the “/image.png”.
If this isn’t a typo, it could be lending itself to your problem.

You get:” …/Photos//image.png”

I use full UNC file paths when writing to a webdev mounted folder on a shared network drive.
example: ‘//NetworkHostName/ShareName/Folder/Folder/Folder/’

Good catch but it was just a typo on my end. I took out some of the details when making the post here.

This URL like path would happen to evaluate to a real path on Unix-ey systems - literally the path pictured. It doesn't surprise me that Ignition thinks it can write there, though it would slightly surprise me if you actually can write to that path.

You nailed it. Ignition creates that path and writes the file to it.