[Python-Dev] Remaining decisions on PEP 471 -- os.scandir() (original) (raw)
Ben Hoyt benhoyt at gmail.com
Tue Jul 15 14:01:16 CEST 2014
- Previous message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Next message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Looks doable. Just make sure the cached entries reflect the 'followsymlinks' 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.
-Ben
- Previous message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Next message: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]