mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
skip fat32 check on unmapped network drive (#902)
This commit is contained in:
parent
51121f6e86
commit
a6b44cff01
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ class MediaManager(object):
|
||||||
def _isFAT32(self):
|
def _isFAT32(self):
|
||||||
if not isWin:
|
if not isWin:
|
||||||
return
|
return
|
||||||
|
if self._dir.startswith("\\\\"):
|
||||||
|
# not sure if we can check on a network drive, so just assume no
|
||||||
|
return
|
||||||
import win32api, win32file
|
import win32api, win32file
|
||||||
name = win32file.GetVolumeNameForVolumeMountPoint(self._dir[:3])
|
name = win32file.GetVolumeNameForVolumeMountPoint(self._dir[:3])
|
||||||
if win32api.GetVolumeInformation(name)[4].lower().startswith("fat"):
|
if win32api.GetVolumeInformation(name)[4].lower().startswith("fat"):
|
||||||
|
|
Loading…
Reference in a new issue