diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-02-09 15:09:32 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-02-09 15:09:32 +0100 |
| commit | c0ecfb78c4aa1beb6c0a525c5bf9ac3653bd46ae (patch) | |
| tree | 437f4fec13f445ce154efb33e531027eed947a4f | |
| parent | 718ab3c10238548b0daf968ee35867d5008b1a4a (diff) | |
| download | enigma2-c0ecfb78c4aa1beb6c0a525c5bf9ac3653bd46ae.tar.gz enigma2-c0ecfb78c4aa1beb6c0a525c5bf9ac3653bd46ae.zip | |
properly handle: non-accessible directories, 'None' (=list of mountpoints) with showMountPoints=false
| -rw-r--r-- | lib/python/Components/FileList.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index a93d4441..84abf328 100644 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -119,8 +119,6 @@ class FileList(MenuList): def changeDir(self, directory, select = None): self.list = [] - if directory and not os_path.isdir(directory): - directory = None # if we are just entering from the list of mount points: if self.current_directory is None: if directory and self.showMountpoints: @@ -138,6 +136,9 @@ class FileList(MenuList): self.list.append(FileEntryComponent(name = p.description, absolute = path, isDir = True)) files = [ ] directories = [ ] + elif directory is None: + files = [ ] + directories = [ ] elif self.useServiceRef: root = eServiceReference("2:0:1:0:0:0:0:0:0:0:" + directory) if self.additional_extensions: |
