[Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
benhoyt at gmail.com
Tue Jul 15 14:01:16 CEST 2014
> Looks doable. Just make sure the cached entries reflect the
> 'follow_symlinks' setting -- so a symlink could end up with both an lstat
> cached entry and a stat cached entry.
Yes, good point -- basically the functions will use the _stat cache if
follow_symlinks=True, otherwise the _lstat cache. If the entry is not
a symlink (the usual case), they'll be the same value.
More information about the Python-Dev