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 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.
Creates an entry within this folder and returns the appropriate instance.
The name of the entry to create.
Optionaloptions: { overwrite?: boolean; type?: TypeSymbol }Options for the create operation (all properties are optional)
Optionaloverwrite?: booleanIf true, the create attempt can overwrite an existing file.
Optionaltype?: TypeSymbolIndicates which kind of entry to create. Pass folder to create a new folder. Note that if the type is file then this method just create a file entry object and not the actual file on the disk. The file actually gets created when you call for eg: write method on the file entry object.
The created entry.
Creates a File Entry object within this folder and returns the appropriate instance. Note that this method just create a file entry object and not the actual file on the disk. The file actually gets created when you call for eg: write method on the file entry object.
The name of the file to create.
Optionaloptions: { overwrite?: boolean }Options for the create operation (all properties are optional)
Optionaloverwrite?: booleanIf true, the create attempt can overwrite an existing file.
The created file entry.
Creates a Folder within this folder and returns the appropriate instance.
The name of the folder to create.
The created folder entry object.
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.
Returns an array of entries contained within this folder.
The entries within the folder.
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.
Renames an entry to a new name.
The entry to rename.
The new name to assign.
Optionaloptions: { overwrite?: boolean }Options for the rename operation (all properties are optional)
Optionaloverwrite?: booleanIf true, renaming can overwrite an existing entry.
Returns the details of the given entry like name, type and native path in a readable string format.
Staticis
Represents a folder on a file system. You'll never instantiate this directly, but will get it by calling FileSystemProvider.getTemporaryFolder, FileSystemProvider.getFolder, or via Folder.getEntries.
See
https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Modules/uxp/Persistent%20File%20Storage/Folder/
Example