summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-23 22:40:30 +0100
committerhut <hut@lavabit.com>2009-11-23 22:40:30 +0100
commit6ca37350f8e6bffe78520fddfc29ca53fa562e87 (patch)
treec465e193f5d7b14521708747c9e4842a461132b6
parentfe179145892d5835b33c79ab90b6ba257cf5f12d (diff)
downloadranger-6ca37350f8e6bffe78520fddfc29ca53fa562e87.tar.gz
set the mtime of the directory after reading
-rw-r--r--code/directory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/directory.py b/code/directory.py
index e28bf35c..d50432d2 100644
--- a/code/directory.py
+++ b/code/directory.py
@@ -17,6 +17,7 @@ class Directory():
 		import os
 		if self.frozen: raise FrozenException()
 		try:
+			self.mtime = os.path.getmtime(self.path)
 			self.files = os.listdir(self.path)
 			self.exists = True
 			self.accessible = True
@@ -24,6 +25,7 @@ class Directory():
 			self.files = None
 			self.exists = False
 			self.accessible = False
+
 		self.files_loaded = True
 
 	def clone(self):
@@ -51,4 +53,3 @@ if __name__ == '__main__':
 	print(d.files)
 	print(d[1])
 
-	
e91cced90f11f1df42cdd09337e8df'>cea97b7b ^
c8998b51 ^
























cea97b7b ^
c8998b51 ^


















c83dca9c ^



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