localFileSystem.getEntryWithUrl is not a function

I am using photoshop version 23.3.2 and suddenly there is no method localFileSystem.getEntryWithUrl()

The idea is that I am trying to find some plugins on the user’s computer and I know the path where they are in advance. Then I try to get the entry from this path and find the files I need there

In higher versions of photoshop this works but in photoshop 2022 it does not work because the method is not even in the prototype localFileSystem

Are there any other ways to get the entry from a string with a path?

For example 'file:///C:/Program%20Files/Common%20Files/Adobe/Plug-Ins/CC/Filters'

getEntryWithUrl method has been supported from Photoshop 24.2, UXP version 6.5 and later.
Please check the change log below.

https://developer.adobe.com/photoshop/uxp/2022/ps_reference/changelog/#uxp-v65-integration

But the document’s explanation doesn’t mention that though.

https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Modules/uxp/Persistent%20File%20Storage/FileSystemProvider/#getentrywithurlurl

I asked for this two years ago… :disappointed:

1 Like

I got around this via the fs module by running fs.readdir(folderPath)

The documentation also said that this is not a completely safe method and it would be better to use localFileSystem, but I have no choice, so I had to contact the system directly