summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/actions.py3
-rw-r--r--ranger/fsobject/directory.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 095dc24b..bf6b5894 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -364,6 +364,9 @@ class Actions(EnvironmentAware, SettingsAware):
 
 		pwd = self.env.pwd
 
+		if not pwd.accessible:
+			return
+
 		if movedown is None:
 			movedown = not all
 
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 25da0ca6..0d417c96 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -393,7 +393,8 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 
 	def __len__(self):
 		"""The number of containing files"""
-		if not self.accessible: raise ranger.fsobject.NotLoadedYet()
+		if not self.accessible or not self.content_loaded:
+			raise ranger.fsobject.NotLoadedYet()
 		return len(self.files)
 
 	def __eq__(self, other):
<unknown> 2008-02-22 19:32:53 +0000 fixed Gottox' mail address' href='/acidbong/suckless/dwm/commit/LICENSE?h=5.6.1&id=fd01413fae6dea101ed07e6ee7c0d26be5e92d03'>fd01413 ^
1076f2b

















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27