diff options
author | hut <hut@lavabit.com> | 2009-12-24 14:42:30 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-24 14:42:30 +0100 |
commit | d35bac82e6ebdbd12701f868efb104ea54c316eb (patch) | |
tree | 0eab00389332178758070d4f01bc86deaf699a29 /ranger/fsobject/directory.py | |
parent | e92fe17a449cad78c79a905fd53ec73f8a41051c (diff) | |
download | ranger-d35bac82e6ebdbd12701f868efb104ea54c316eb.tar.gz |
misc clean ups
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r-- | ranger/fsobject/directory.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index f91f99d9..b83e1592 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -169,7 +169,8 @@ class Directory(SuperClass, SettingsAware): # yield def load_content(self, schedule=False): - """Loads the contents of the directory. Use this sparingly since + """ + Loads the contents of the directory. Use this sparingly since it takes rather long. """ @@ -248,7 +249,8 @@ class Directory(SuperClass, SettingsAware): return self.pointed_file def move_pointer_to_file_path(self, path): - """Move the index pointer to the index of the file object + """ + Move the index pointer to the index of the file object with the given path. """ if path is None: return @@ -291,9 +293,7 @@ class Directory(SuperClass, SettingsAware): return False def correct_pointer(self): - """make sure the pointer is in the valid range of: - 0:len(self.files)-1 (or None if directory is empty.) - """ + """Make sure the pointer is in the valid range""" if self.files is None or len(self.files) == 0: self.pointed_index = None @@ -320,7 +320,8 @@ class Directory(SuperClass, SettingsAware): return False def load_content_if_outdated(self, *a, **k): - """Load the contents of the directory if it's + """ + Load the contents of the directory if it's outdated or not done yet """ if self.load_content_once(*a, **k): return True |