Willo3092
ViX Beta Tester
This is what I have now
But looks different in the py file

Code:
def isValidPartition(self, path):
if path is not None:
supported_filesystems = ('ext4', 'ext3', 'ext2', 'nfs', 'autofs')
valid_partitions = []
for partition in Components.Harddisk.harddiskmanager.getMountedPartitions():
if partition.filesystem() in supported_filesystems:
valid_partitions.append(partition.mountpoint)
print("[" + self.__class__.__name__ + "] valid partitions", valid_partitions)
if valid_partitions:
return Components.Harddisk.findMountPoint(realpath(path))+'/' in valid_partitions or Components.Harddisk.findMountPoint(realpath(path)) in valid_partitions
return False
But looks different in the py file





