[Python-Dev] My summary of the scandir (PEP 471)

Ben Hoyt benhoyt at gmail.com
Tue Jul 1 17:30:37 CEST 2014

> 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?


More information about the Python-Dev mailing list