From 6ca37350f8e6bffe78520fddfc29ca53fa562e87 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 23 Nov 2009 22:40:30 +0100 Subject: set the mtime of the directory after reading --- code/directory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]) - -- cgit 1.4.1-2-gfad0 l='branches'> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/apps/subx-params.subx
blob: c3827ad7a3948bc1333e3cddf1b41a0d864209ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19