diff options
-rw-r--r-- | ranger/container/directory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/container/directory.py b/ranger/container/directory.py index b23abe04..c6dba2ef 100644 --- a/ranger/container/directory.py +++ b/ranger/container/directory.py @@ -233,7 +233,8 @@ class Directory( # pylint: disable=too-many-instance-attributes,too-many-public if not self.settings.show_hidden and self.settings.hidden_filter: hidden_filter = re.compile(self.settings.hidden_filter) hidden_filter_search = hidden_filter.search - filters.append(lambda fobj: not hidden_filter_search(fobj.basename)) + filters.append( + lambda fobj: not hidden_filter_search(fobj.relative_path.split(os.path.sep)[0])) if self.filter: filter_search = self.filter.search filters.append(lambda fobj: filter_search(fobj.basename)) |