121
108
"""Scan all files and remove entries where the cache entry is obsolete.
123
110
Obsolete entries are those where the file has been modified or deleted
126
113
# FIXME optimisation opportunity, on linux [and check other oses]:
127
114
# rather than iteritems order, stat in inode order.
128
115
prep = [(ce[1][3], path, ce) for (path, ce) in self._cache.iteritems()]
131
118
for inum, path, cache_entry in prep:
133
120
fp = self._fingerprint(abspath)
136
123
cache_fp = cache_entry[1]
138
125
if (not fp) or (cache_fp != fp):
139
126
# not here or not a regular file anymore