Removes the final path component of a path, using the platform's
path separator to split the path. Will not remove the root component
of a Windows path, like "C:\" or "\\server_name\".
Ignores traili...
Removes the final path component of a path, using the platform's
path separator to split the path. Will not remove the root component
of a Windows path, like "C:\" or "\\server_name\".
Ignores trailing path separators, and leaves no trailing path separators.