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