[issue9035] os.path.ismount on windows doesn't support windows mount points
Oren Held
report at bugs.python.org
Tue Oct 4 17:30:13 CEST 2011
Oren Held <oren at held.org.il> added the comment:
Anything wrong with the following simple approach? (e.g. is it bad to depend on win32file?)
def win_ismount(path):
import win32file
volume_path = win32file.GetVolumePathName(path)
return volume_path == path # May have to ignore a trailing backslash
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9035>
_______________________________________
More information about the Python-bugs-list
mailing list