I have a network-attached storage mapped to /Volumes/Media
, and then I use the path
/Volumes/Media/some/path/
in my program.
I want to be able to determine the what part of the path is the mapped drive, and which is the rest. Something like
os.path.split_volume('/Volumes/Media/some/path/') == '/Volumes/Media', 'some/path'
I am currently on Mac OS X, but I image that the code will generally run in a Linux environment.