dirGetParent
Returns an object representing the parent directory of the current directory or file.
Method of
FileSyntax
FileSpecObject dirGetParent( FileSpecObject fileOrDir );Parameters
The
dirGetParentmethod has the following parameters:
A FileSpecObject representing the pathname of the file or directory whose parent is being requested.
Returns
A FileSpecObject if successful; null if not successful.
Example
f = getFolder("Program", "myNewDirectory"); err = File.dirCreate(f);err = File.getParent(f) // returns "Program"
| Netscape Communications devedge.netscape.com |