Extracts the parent path of the specified file/directory
"/path/path/file" - the path to operate on.
The parent directory of the specified file/directory.
$path = "/Users/raffi/sleepdev/sleep/readme.txt"; $x = 0; while $path (getFileParent($path)) { println((".." x $x) . " $path"); $x++; }
/Users/raffi/sleepdev/sleep .. /Users/raffi/sleepdev .... /Users/raffi ...... /Users ........ /