[python-win32] GetVolumeInformation throwing exception

Tim Roberts timr at probo.com
Wed Jan 10 22:09:22 CET 2007


Gustavo Tabares wrote:
> Hrm ok, so this:
>
> win32api.GetVolumeInformation('F:')
>
> only works if your current working directory isn't somewhere on that
> drive (as in my example code)? The rest of the time you need to
> specify an additional slash or to be safe always include the os
> separator.

Beats me.  You're asking about undocumented behavior.  The fact that it
works at all is merely an accident, and might change in the next service
pack.  The documentation says "a trailing backslash is *required*".

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list