equal
deleted
inserted
replaced
718 if visit == 'all' or visit == 'this': |
718 if visit == 'all' or visit == 'this': |
719 self._loadalllazy() |
719 self._loadalllazy() |
720 return None |
720 return None |
721 |
721 |
722 todel = [] |
722 todel = [] |
|
723 loadlazy = self._loadlazy |
723 for k in visit: |
724 for k in visit: |
724 kslash = k + '/' |
725 loadlazy(k + '/') |
725 ld = self._lazydirs.get(kslash) |
|
726 if ld: |
|
727 path, node, readsubtree = ld |
|
728 self._dirs[kslash] = readsubtree(path, node) |
|
729 todel.append(kslash) |
|
730 for kslash in todel: |
|
731 del self._lazydirs[kslash] |
|
732 return visit |
726 return visit |
733 |
727 |
734 def __len__(self): |
728 def __len__(self): |
735 self._load() |
729 self._load() |
736 size = len(self._files) |
730 size = len(self._files) |