Only list directories and never the main HD
This commit is contained in:
parent
7119eb49b6
commit
0d2b334f75
1 changed files with 5 additions and 1 deletions
|
|
@ -91,5 +91,9 @@ def getDrives():
|
|||
drives.append(letter + ':/')
|
||||
bitmask >>= 1
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue