Only list directories and never the main HD

This commit is contained in:
daid303 committed 2012-10-26 15:53:34 +02:00
1 parent 7119eb49b6
commit 0d2b334f75
1 file changed
+5 -1
+5 -1
View File
@@ -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