Changeset de02915617d8…
Parent b1a6be4bc66a…
by
Changes to one file · Browse files at de02915617d8 Showing diff from parent b1a6be4bc66a Diff from another changeset...
@@ -81,6 +81,10 @@ return True if a network drive is accessible (connected, ...),
or None if <drive> is not a network drive
"""
+ if hasattr(os.path, 'splitunc'):
+ unc, rest = os.path.splitunc(drive)
+ if unc: # All UNC paths (\\host\mount) are considered nonlocal
+ return True
letter = os.path.splitdrive(drive)[0]
_drives, total, _ = win32net.NetUseEnum(None, 1, 0)
for drv in _drives:
|
Loading...