Creates an instance of Entry.
ReadonlyisIndicates that this instance is an Entry. Useful for type-checking.
ReadonlyisIndicates that this instance is not a File. Useful for type-checking.
ReadonlyisIndicates that this instance is not a folder. Useful for type-checking.
ReadonlynameThe name of this entry. Read-only.
ReadonlynativeThe platform native file-system path of this entry. Read-only
ReadonlyproviderThe associated provider that services this entry. Read-only.
ReadonlyurlThe url of this entry. You can use this url as input to other entities of the extension system like for eg: set as src attribute of a Image widget in UI. Read-only.
Copies this entry to the specified folder.
The folder to which to copy this entry.
Optionaloptions: { allowFolderCopy?: boolean; overwrite?: boolean }Options for the copy operation (all properties are optional)
OptionalallowFolderCopy?: booleanIf true, allows copying the folder.
Optionaloverwrite?: booleanIf true, allows overwriting existing entries.
Removes this entry from the file system. If the entry is a folder, all the contents will also be removed.
Note: Currently when using this method, a permission denied error will occur if attempting to delete a folder that was selected from a storage picker or added via drag-and-drop.
The number is 0 if succeeded, otherwise throws an Error.
Moves this entry to the target folder, optionally specifying a new name.
The folder to which to move this entry.
Optionaloptions: { newName?: string; overwrite?: boolean }Options for the move operation (all properties are optional)
OptionalnewName?: stringIf specified, the entry is renamed to this name.
Optionaloverwrite?: booleanIf true allows the move to overwrite existing files.
Returns the details of the given entry like name, type and native path in a readable string format.
An Entry is the base class for File and Folder. You'll typically never instantiate an Entry directly, but it provides the common fields and methods that both File and Folder share.
You can get an instance of Entry via the
localFileSystemby fetching an instance of a File or Folder.See
https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Modules/uxp/Persistent%20File%20Storage/Entry/
Example