Javascript File
Javascript File object.
Static methods
- exists(path)
Check if a file or directory exists
Parameters:
path: Path to check
Return:
TRUE if found, FALSE if not
- remove(path)
Remove specified file
Parameters:
path: File path
Return:
TRUE on success, FALSE on failure
- rename(oldName,newName)
Rename (or move) a file
Parameters:
oldName: Path to file to rename or move
newName: Path to new file name
Return:
TRUE on success, FALSE on failure
- mkdir(path)
Create a directory
Parameters:
path: Directory path
Return:
TRUE on success, FALSE on failure
- rmdir(path)
Remove specified directory
Parameters:
path: Directory to remove
Return:
TRUE on success, FALSE on failure
- getFileTime(path)
Retrieve file last change time
Parameters:
path: File path
Return:
File last change time in seconds since EPOCH, -1 on failure
- setFileTime(path,time)
Set file last change time
Parameters:
path: File path
time: File time in seconds since EPOCH
Return:
TRUE on success, FALSE on failure