Specifications

DescriptionSortSpec
Sort case-insensitivelyDir.IgnoreCase
Static properties
The current directory.
current : String
The home directory.
home : String
The root directory.
root : String
An Array of strings containing the drive names (c:, d:,
etc).
drives : String[ ]
Static functions
The Utility module uses "/" as a directory separator throughout (although it understands the
conventions of the platform it is used on). If you are working with paths, use "/" within your
code, and use convertSeparators() when you want to display a path to the user.
Removes all multiple directory separators "/" and
resolves any "."s or ".."s found in the path filePath.
cleanDirPath( filePath : String ) :
String
Returns pathName with the "/" separators converted to
separators that are appropriate for the underlying
operating system.
convertSeparators( pathName : String
) : String
Checking for arrival
This function checks if a folder and all of its files have "arrived". A folder has arrived if the
number of files and subfolders in the folder (recursively) has not changed during the stability
period, and if all of these items have arrived individually. See also in the File class
documentation.
Returns true if it can be assumed that the folder and its contents
have arrived according to the heuristic describe above; otherwise
hasArrived( filePath : String,
stabilitySeconds : Number ) :
Boolean [static]
returns false. The stability period is specified in seconds (as a
floating point number).
hasArrived( stabilitySeconds :
Number ) : Boolean
The length of the required stability period depends on the
nature and size of the file, on the process writing the file and
on the performance and workload of the computer system(s)
involved. In most cases a stability period of 1 second is both
sufficient and acceptable (in terms of delay). When the file is
produced by a slow process or transferred across a slow network,
a much longer stability period may be required.
Note:
419
Enfocus Switch 10