Returns the parent part of the pathname of the file represented in the specified file object.
Syntax
getParent( file )
file.getParent( )
Parameters
Returns
path
|
the parent part of the file path of the specified file object.
|
Example
println( "path: " + getParent( fh ) )
|