Gets the parent path of a given path. This method works with the path structure and doesn't check if the path actually exists in the filesystem.
The parent path or null if no parent exists.
The path to examine.