Retrieves the parent directory of the specified path, if it exists.
the parent path if it exists, or null if the path does not have a parent
the path for which to retrieve the parent directory