Specifications
Contains the canonical path, i.e. a path without symbolic links or
redundant "." or ".." elements.
canonicalPath : String
True if the directory is readable; otherwise false.
readable : Boolean
True if the directory exists; otherwise false.
exists : Boolean
Member functions
Returns the path name of the file fileName in the directory.
filePath( fileName : String ) :
String
Returns the absolute path name of the file fileName in the
directory.
absFilePath( fileName : String )
: String
Changes the Dir's directory to dirName if possible; otherwise
throws an exception.
cd( dirName : String )
Changes directory by moving one directory up from the Dir's
current directory if possible; otherwise throws an exception.
cdUp()
Returns a list of the names of all the files and directories in
the directory, ordered in accordance with sortSpec (see enum
entryList( filter : String,
filterSpec : Number, sortSpec :
Number ) : String[ ]
SortSpec) and filtered in accordance with filterSpec (see enum
FilterSpec).
For example:
var profiles = profilesDir.entryList("*.icc", Dir.Files,
Dir.Name);
Gets a list of ICC profiles in the specified directory, sorted by
filename.
var writableProfiles = profilesDir.entryList("*.icc",
Dir.Files|Dir.Writable, Dir.Name);
Same as above but the list is restricted to ICC profiles for which
the application has write access.
Creates the directory dirName if possible; otherwise throws
an exception.
mkdir( dirName : String )
Creates this directory if possible; otherwise throws an
exception.
mkdir()
Creates the directory tree dirName if possible; otherwise throws
an exception.
mkdirs( dirName : String )
Creates this directory tree if possible; otherwise throws an
exception.
mkdirs()
421
Enfocus Switch 10










