how to enumerate all drives on Win32?

Steve Holden sholden at holdenweb.com
Mon Apr 30 15:11:09 EDT 2001


<skip at pobox.com> wrote in message
news:mailman.988655383.28858.python-list at python.org...
>
> 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,
>
http://www.faqts.com/knowledge-base/view.phtml/aid/4670

regards
 Steve





More information about the Python-list mailing list