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