trying be a little more platform independant
This commit is contained in:
@@ -25,7 +25,7 @@ class Location_Validator(QtGui.QValidator):
|
||||
Arguments:
|
||||
location {str} -- A string representing a folder path
|
||||
"""
|
||||
match = [drive for drive in psutil.disk_partitions() if (Path(drive.mountpoint) in Path(location).parents and drive.fstype.lower() == "ntfs")]
|
||||
match = [drive for drive in psutil.disk_partitions(all = True) if (Path(drive.mountpoint) in Path(location).parents and drive.fstype.lower() == "ntfs")]
|
||||
if match:
|
||||
self._ntfs_location_selected = True
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user