skip fat32 check on unmapped network drive (#902)

This commit is contained in:
Damien Elmes 2013-06-10 15:32:21 +09:00
parent 51121f6e86
commit a6b44cff01

View file

@ -72,6 +72,9 @@ class MediaManager(object):
def _isFAT32(self):
if not isWin:
return
if self._dir.startswith("\\\\"):
# not sure if we can check on a network drive, so just assume no
return
import win32api, win32file
name = win32file.GetVolumeNameForVolumeMountPoint(self._dir[:3])
if win32api.GetVolumeInformation(name)[4].lower().startswith("fat"):