Folder in Photoshop DOM

Represents a folder/directory on disk.

Self Properties

name type description
current Folder The current folder.
startup Folder (read only) The folder containing the executable image of the running application.
system Folder (read only) The folder containing the operating system files.
temp Folder (read only) The default folder for temporary files.
trash Folder (read only) The folder containing deleted items.

Self Methods

name returns description
decode(str) String Decode the input string according to RFC 2396.
encode(str) String Encode the input string according to RFC 2396.

Instance Properties

name type description
absoluteURI String (read only) The full path name for the Folder in URI notation.
alias Boolean (read only) Is the Folder a file-system alias?
created Date (read only) Creation date for the Folder.
error String The last file system error.
exists Boolean (read only) Returns true if the path of this Folder refers to an existing file on disk.
fsName String (read only) The file-system-specific name of this Folder as a full path name.
name String (read only) The name of the Folder without the path specification.
parent Folder (read only) The Folder containing this Folder.
path String (read only) The path portion of the absoluteURI.
relativeURI String (read only) The path name for the Folder in URI notation, relative to the current folder.

Instance Methods

name returns description
create() Boolean Create a new folder.
getFiles([mask]) Array Get all files and folders inside this folder.
getRelativeURI([basePath]) String Calculate the path relative to another.
remove() Boolean Delete the folder.
rename(newName) Boolean Rename the folder.
resolve() Folder Find the original that the alias points to.

Properties that are a Folder

name object description
current Folder The current folder.
parent Folder (read only) The Folder containing this Folder.
parent File (read only) The Folder containing this File.
startup Folder (read only) The folder containing the executable image of the running application.
system Folder (read only) The folder containing the operating system files.
temp Folder (read only) The default folder for temporary files.
trash Folder (read only) The folder containing deleted items.

Methods that return a Folder

name of object description
resolve() Folder Find the original that the alias points to.