Use this function to retrieve the parent directory from a string representing
the full path of a file or a directory.
Usage
get_parent_dir(pathStr)
Value
a string representing the parent directory. When a non-file path is
used as input (or something along those lines :) then it returns the root
("/") directory.
Arguments
pathStr
string. The name of the directory, can be a full path filename.