When trying to access a drive called \\OO-AA1 (zo not the usual Z:/ or something alike)
We get an error, file not found, and if you look at the error it doesn’t show the drive in the path. \\OO-AA1\Profiles$\t\ would turn into file:///Profiles$/t/
The path is accessible from Explorer and such, although it’s not visible from “Your pc” like the Z drive is.
Just to rule out more obvious access issues, are you able to access random files on your local drive? And just to confirm you have all the right settings in your manifest, etc. like it has been mentioned over and over in various threads in the forum (e.g. this one or this)?
Regarding your first question, I can open random files, or the files specified in my script yeah? Or am I misunderstanding you.
Regarding the manifest, don’t have one, it’s a script and not a plugin.
The root cause feels to me like is a Photoshop bug, based on how it removes the drive, in this case network drive from the path.
I’ll try to rewrite it using Node FS, maybe that works?
My question was, if you were able to invoke localFileSystem.getEntryWithUrl successfully in any other case. To be honest, I’m not entirely sure that UXP allows random file access in scripts (vs. plugins, that can request that permission via manifest). Similarly I don’t think Node FS is available in UXP, only UXP’s own fs module, but again not sure if that is available in a script (vs. plugin). Maybe someone from Adobe can confirm that.
The issue most likely is permission related
Within Java and normal NodeJS FS I can read the file without problems.
Just not possible when in a script. I can try to convert it into a plugin, but honestly no clue how much time that takes.
Or alternatively, it can still be a bug in the UXP API.
See:
We get an error, file not found, and if you look at the error it doesn’t show the drive in the path. \\OO-AA1\Profiles$\t\ would turn into file:///Profiles$/t/
the OO-AA1 is the drive path, so yea that’s absolutely required.
@Tais993 Thanks for sharing the details.
Would like to point out that the ‘network’ permission does not influence the file system access. So you can remove OO-PWK-FL01 from network → domains.
To what @dotproduct recommended, can you try accessing any other location, such as a desktop folder, with your plugin to test that it works under normal circumstances?
Ideally, "localFileSystem": "fullAccess" should do the job but I have heard an issue with unusual drives sometimes. As an interim, my recommendation would be to move your files to a more accessible location while we look into this.
To what @dotproduct recommended, can you try accessing any other location, such as a desktop folder, with your plugin to test that it works under normal circumstances?
Yes, no issues when loading files on a mounted drive in my plugin.
As an interim, my recommendation would be to move your files to a more accessible location while we look into this.
I have written a script which moves all files to the C drive temp folder, works for now.
Is there any way to follow bug progress? If no, that’s fine!