|
Page Updated: March 11, 2005
Latest Version: 0.1.362 |
|
Debug |
Install | File
I/O |
RDF |
Network |
Sound | Utils |
XUL | Zip
|
|
|
Home | Mailing List |
Install |
Source Code |
Downloads | Bugs
| docs
| clients |
JS Directory Class API
Function List
- initPath(aPath);
- Initialize or reinitialize the dir object
- exists(aPath);
- does the dir exist?
- leaf;
- returns directory leafname
- parent;
- returns dir parent as a new dir initialized object
- permissons;
- returns the dir permissions
- dateModified;
- returns the last modified date object
- create(aPermissions);
- creates a new dir
- remove();
- removes a file, the instance remains unchanged
- readDir();
- returns an array of file and/or dir objects depending what the contents are
- move(aDest);
- moves a dir to a new destination and dir object 'this' is reinitialized to reflect this move
- append(aLeaf);
- appends a leaf on the the curent file object
- appendRelativePath(aRelPath);
- appends a relative path the the current file instance
- isDir();
- bool returns true if the file is a directory
- isFile();
- bool returns true if the file is a file
- isExec();
- bool returns true if the file is executible
- isSymlink();
- bool returns true if the file is symbolic link
- currently dumps a list of available functions