summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-18 12:16:35 +0200
committerhut <hut@lavabit.com>2010-04-18 12:16:35 +0200
commit8dc6194ecc0bd0876b4421c4be450b94c385e818 (patch)
tree2d1bc276eb1f65b91b212fd7910d5e6174c89862
parentab573ea980a46d91e1da9347a1d7b90e7daddcda (diff)
downloadranger-8dc6194ecc0bd0876b4421c4be450b94c385e818.tar.gz
improved loading of infostrings
no "lazy" loading anymore, its not worth it
-rw-r--r--ranger/fsobject/directory.py7
-rw-r--r--ranger/fsobject/fsobject.py2
2 files changed, 2 insertions, 7 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 1c8355cd..af8ab232 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -201,11 +201,6 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 				self.filenames = filenames
 				self.files = files
 
-				if self == self.fm.env.cwd:
-					for dir in self.files:
-						if dir.is_directory and dir.infostring == 'unknown':
-							dir.determine_infostring()
-
 				self._clear_marked_items()
 				for item in self.files:
 					if item.path in marked_paths:
@@ -224,9 +219,9 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 				self.filenames = None
 				self.files = None
 
-			self.determine_infostring()
 			self.cycle_list = None
 			self.content_loaded = True
+			self.determine_infostring()
 			self.last_update_time = time()
 
 		finally:
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index 3f272bb2..b954d87f 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -186,7 +186,6 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 		"""
 
 		self.loaded = True
-
 		try:
 			self.stat = os.lstat(self.path)
 		except OSError:
@@ -213,6 +212,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 			self.accessible = True
 			if os.path.isdir(self.path):
 				self.type = T_DIRECTORY
+				self.runnable = bool(mode & stat.S_IXUSR)
 			elif os.path.isfile(self.path):
 				self.type = T_FILE
 			else:
awterm.mu?h=main&id=4e757e8d260f8857f77d9276bd7ec7b146745595'>^
f7a26719 ^
5249b0ff ^



954dd99d ^

52034b0f ^
d1c12218 ^
f7a26719 ^


954dd99d ^




954dd99d ^
f7a26719 ^
954dd99d ^
f7a26719 ^
954dd99d ^

f7a26719 ^
954dd99d ^


d1c12218 ^
d2db5af7 ^
954dd99d ^

954dd99d ^

954dd99d ^

b5794d2f ^

4b62edd8 ^
33d602db ^

954dd99d ^






33d602db ^

954dd99d ^



d2db5af7 ^
954dd99d ^

b5794d2f ^
33d602db ^

d2db5af7 ^
33d602db ^

d2db5af7 ^
954dd99d ^

773d01c8 ^
a03b8aea ^







8577d177 ^
4d1f6bd7 ^
845a989f ^
a27dfba3 ^



845a989f ^



bee53b4b ^
a27dfba3 ^

















4d1f6bd7 ^
5b698455 ^
7d2c2d55 ^

a03b8aea ^

93d5dce6 ^
7d2c2d55 ^


98e6a592 ^


3f29fba8 ^
98e6a592 ^
a27dfba3 ^

a03b8aea ^
a27dfba3 ^








4d1f6bd7 ^
5b698455 ^
93d5dce6 ^
7d2c2d55 ^


a27dfba3 ^













10c5eed0 ^
a27dfba3 ^

bee53b4b ^
a27dfba3 ^

4d1f6bd7 ^
5b698455 ^
93d5dce6 ^
a27dfba3 ^


a03b8aea ^

ce3518f3 ^
d1c12218 ^
ce3518f3 ^



ce3518f3 ^
ce3518f3 ^

e605597d ^

e605597d ^
e605597d ^


445a1494 ^
ce3518f3 ^


16a83577 ^
d1c12218 ^
f7a26719 ^








a1f2f613 ^
93d5dce6 ^
4d1f6bd7 ^
83a43e63 ^
09e2e533 ^

8ab4b12c ^
7d2c2d55 ^

5249b0ff ^
0d2c3387 ^
d2db5af7 ^
0d2c3387 ^
7d2c2d55 ^
0d2c3387 ^
7d2c2d55 ^
0d2c3387 ^
7d2c2d55 ^
09e2e533 ^
bee53b4b ^
7d2c2d55 ^



4ca73eb6 ^
bee53b4b ^
98e6a592 ^
5249b0ff ^


16a83577 ^




954dd99d ^
308e1146 ^
445a1494 ^
308e1146 ^
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259