[Python-Dev] My summary of the scandir (PEP 471) (original) (raw)
Ben Hoyt benhoyt at gmail.com
Tue Jul 1 17:30:37 CEST 2014
- Previous message: [Python-Dev] My summary of the scandir (PEP 471)
- Next message: [Python-Dev] My summary of the scandir (PEP 471)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
No need for a microsecond-timed deletion -- a directory with +r but without +x will allow you to list the entries, but stat calls on the files will fail with EPERM:
Ah -- very good to know, thanks. This definitely points me in the direction of wanting better control over error handling.
Speaking of errors, and thinking of handling errors during iteration -- in what cases (if any) would an individual readdir fail if the opendir succeeded?
-Ben
- Previous message: [Python-Dev] My summary of the scandir (PEP 471)
- Next message: [Python-Dev] My summary of the scandir (PEP 471)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]