Chops off the last part of the given directory path after a path separator, essentially returning the path's parent directory. If an absolute path is passed, the returned path is also absolute.
The directory whose parent to return
Chops off the last part of the given directory path after a path separator, essentially returning the path's parent directory. If an absolute path is passed, the returned path is also absolute.