about summary refs log tree commit diff stats
path: root/ranger/fsobject/directory.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-19 18:34:12 +0100
committerhut <hut@lavabit.com>2010-01-19 18:34:12 +0100
commita1274aba49793e6a48be95c2cece7d32e5d334f2 (patch)
tree3c7cd7f6d265122bc87a1f5a571902d96bc7247c /ranger/fsobject/directory.py
parent2d32d870e21c533872fc18cf9b93a8756b123992 (diff)
downloadranger-a1274aba49793e6a48be95c2cece7d32e5d334f2.tar.gz
done #34: display free disk space
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r--ranger/fsobject/directory.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 6dc3ae39..79b39f69 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -46,6 +46,8 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 	scroll_begin = 0
 	scroll_offset = 0
 
+	mount_path = '/'
+
 	last_update_time = -1
 	load_content_mtime = -1
 
@@ -138,6 +140,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 		# log("generating loader for " + self.path + "(" + str(id(self)) + ")")
 		from os.path import join, isdir, basename
 		from os import listdir
+		import ranger.ext.mount_path
 
 		self.loading = True
 		self.load_if_outdated()
@@ -145,6 +148,8 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 		try:
 			if self.exists and self.runnable:
 				yield
+				self.mount_path = ranger.ext.mount_path.mount_path(self.path)
+
 				filenames = []
 				for fname in listdir(self.path):
 					if not self.settings.show_hidden: