equal
deleted
inserted
replaced
204 def initdirs(self): |
204 def initdirs(self): |
205 if self.dirs is None: |
205 if self.dirs is None: |
206 self.dirs = {} |
206 self.dirs = {} |
207 for f in self.map: |
207 for f in self.map: |
208 self.updatedirs(f, 1) |
208 self.updatedirs(f, 1) |
209 |
209 |
210 def updatedirs(self, path, delta): |
210 def updatedirs(self, path, delta): |
211 if self.dirs is not None: |
211 if self.dirs is not None: |
212 for c in strutil.findall(path, '/'): |
212 for c in strutil.findall(path, '/'): |
213 pc = path[:c] |
213 pc = path[:c] |
214 self.dirs.setdefault(pc, 0) |
214 self.dirs.setdefault(pc, 0) |