Browse Source

remove from mapping, and use .keys() since we modify the dictionary..

[git-p4: depot-paths = "//depot/": change = 772]
replace/4e84fdb41ea781c7a8f872baa423e8b3be4045a7
John-Mark Gurney 19 years ago
parent
commit
0493255689
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      FSStorage.py

+ 2
- 1
FSStorage.py View File

@@ -122,10 +122,11 @@ class FSDirectory(FSObject, StorageFolder):
# We need to rescan this dir, and see if our children has
# changed any.
children = sets.Set(os.listdir(self.FSpath))
for i in self.pathObjmap:
for i in self.pathObjmap.keys():
if i not in children:
# delete
self.cd.delItem(self.pathObjmap[i])
del self.pathObjmap[i]

for i in children:
fname = os.path.join(self.FSpath, i)


Loading…
Cancel
Save