This is a general class that wraps XPCOM filesystem functionality and from which File and Dir objects are derived.
Platform Support
| Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
|---|
Constructors
| Constructor | Action | Jaxer Server Framework | Jaxer Client Framework | ||
|---|---|---|---|---|---|
Jaxer.FileUtils Constructor() : Jaxer.FileUtils A helper object for filesystem access | Show Details | 1.0 | no | ||
Jaxer.FileUtils() : Jaxer.FileUtilsA helper object for filesystem access Returns
| |||||
Functions
| Method | Action | Jaxer Server Framework | Jaxer Client Framework | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
append(String leafname) : String Changes the path of the filesystem object by appending the provided leaf value. | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
chromeToPath(String a) : String Convert a chrome path to a filesystem path | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
copy(String source, String destination) :
void
Copies the source path to the destination path | Show Details | 1.0 | no | ||||||||
Parameters
| |||||||||||
create(String aPath) :
void
Creates a file on the filesystem with the default permissions | Show Details | 1.0 | no | ||||||||
Parameters
| |||||||||||
dateModified() : Object The last modified timestamp as reported by the OS | Show Details | 1.0 | no | ||||||||
Returns
| |||||||||||
exists() : Boolean A boolean indicator of whether the referenced object physically exists on the filesystem. | Show Details | 1.0 | no | ||||||||
Returns
| |||||||||||
ext(String aPath) : String Returns the extension of the file object | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
isValidPath(String aPath) : Boolean Returns a boolean indicator that is true for a valid path and false otherwise | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
leaf(String a) : String Returns the leaf (filename + extension) portion of the file path | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
nsIFile(String aPath) : Object Returns an nsIFIle object for the specified path | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
parent(String aPath) : String Returns the path of the parent filesystem object | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
pathToURL(String a) : String Convert a filesystem path to a file protocol URL | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
permissions() : String Get the file permissions for the File object | Show Details | 1.0 | no | ||||||||
Returns
| |||||||||||
remove() :
void
Removes the referenced object physically from the filesystem. | Show Details | 1.0 | no | ||||||||
| |||||||||||
run(String aPath, Array aArgs) : Number Trys to execute the requested file as a separate *non-blocking* process. Passes the supplied *array* of arguments on the command line if the OS supports it. | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
size(String source) : Number Returns the size in bytes as reported by the OS | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
urlToPath(String a) : String Convert a file protocol URL to a filesystem path | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
validatePermissions(Number the) : Boolean This function will validate the numeric permissions value provided, if true the permissions value is valid, if false the value is invalid. | Show Details | 1.0 | no | ||||||||
Parameters
Returns
| |||||||||||
