summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-10 16:04:54 +0200
committerhut <hut@lavabit.com>2011-10-10 16:04:54 +0200
commit5d548b9eabe7eb836a7e40232e16c70446f3b2a1 (patch)
tree372dea4405856b7f5d49e16c8561f617fe14c557
parentb9c432d9ecb58e7c5dbc7957843aa4ea3509834f (diff)
downloadranger-5d548b9eabe7eb836a7e40232e16c70446f3b2a1.tar.gz
fsobject.directory: revert change to accept_file
-rw-r--r--ranger/fsobject/directory.py4
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