#
[enigma2.git] / lib / python / Components / FileList.py
index 5824747d0a95f571f67c009e78a2629b7f161f4e..3e38bd06117e5dcff592ed061f34e2727df6ea5e 100644 (file)
@@ -127,8 +127,8 @@ class FileList(MenuList):
 
                if directory is None and self.showMountpoints: # present available mountpoints
                        for p in harddiskmanager.getMountedPartitions():
-                               path = os_path.join(p.mountpoint,"")
-                               if not self.inhibitMounts or ((not path in self.inhibitMounts) and (not self.inParentDirs(path, self.inhibitDirs))):
+                               path = os_path.join(p.mountpoint, "")
+                               if path not in self.inhibitMounts and not self.inParentDirs(path, self.inhibitDirs):
                                        self.list.append(FileEntryComponent(name = p.description, absolute = path, isDir = True))
                        files = [ ]
                        directories = [ ]