diff options
author | hut <hut@lavabit.com> | 2011-10-10 16:04:54 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-10 16:04:54 +0200 |
commit | 5d548b9eabe7eb836a7e40232e16c70446f3b2a1 (patch) | |
tree | 372dea4405856b7f5d49e16c8561f617fe14c557 /ranger | |
parent | b9c432d9ecb58e7c5dbc7957843aa4ea3509834f (diff) | |
download | ranger-5d548b9eabe7eb836a7e40232e16c70446f3b2a1.tar.gz |
fsobject.directory: revert change to accept_file
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/directory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 87f82448..0130cc7b 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -43,7 +43,7 @@ def sort_naturally(path): def sort_naturally_icase(path): return path.basename_natural_lower -def accept_file(fname, hidden_filter, name_filter): +def accept_file(fname, directory, hidden_filter, name_filter): if hidden_filter: try: if hidden_filter.search(fname): @@ -188,7 +188,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): self.infostring = ' %d' % self.size filenames = [mypath + (mypath == '/' and fname or '/' + fname)\ for fname in filelist if accept_file( - fname, hidden_filter, self.filter)] + fname, mypath, hidden_filter, self.filter)] yield self.load_content_mtime = os.stat(mypath).st_mtime |