Only list directories and never the main HD
parent
7119eb49b6
commit
0d2b334f75
|
@ -91,5 +91,9 @@ def getDrives():
|
||||||
drives.append(letter + ':/')
|
drives.append(letter + ':/')
|
||||||
bitmask >>= 1
|
bitmask >>= 1
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
drives = glob.glob('/Volumes/*')
|
drives = []
|
||||||
|
for volume in glob.glob('/Volumes/*/'):
|
||||||
|
if volume.endswith('/Macintosh HD/'):
|
||||||
|
continue
|
||||||
|
drives.append(volume)
|
||||||
return drives
|
return drives
|
||||||
|
|
Loading…
Reference in New Issue