how to enumerate all drives on Win32?
skip at pobox.com
skip at pobox.com
Mon Apr 30 14:29:43 EDT 2001
For a file/directory browser I need to be able to traverse all mounted
filesystems. This is no problem on Unix systems, because we have the studly
mount(2) system call and thus have a single directory tree rooted at /.
Alas, Windows (once again) is broken in this regard. I need to know how to
enumerate all the drive letters that have something mounted on them. I
didn't see anything in the ntpath module that looked like it would do the
trick. Any suggestions?
Thanks,
--
Skip Montanaro (skip at pobox.com)
(847)971-7098
More information about the Python-list
mailing list