[issue17330] Check st_nlink in addition to st_mtime to invalidate FileFinder cache
Erik Bray
report at bugs.python.org
Fri Mar 1 20:57:03 CET 2013
Erik Bray added the comment:
Put another way, the cache associated with a FileFinder only keeps track of the filenames in a directory, and not their individual mtimes. So if a new file is added to the directory the cache should be invalided. Likewise if a file is removed.
If a file is modified or removed and a new file with the same name subsequently added this is irrelevant to the cache. Importing that module will still succeed if it hasn't already been imported. If that module's file is *not* in the cache then an ImportError is raised.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17330>
_______________________________________
More information about the Python-bugs-list
mailing list