[Python-ideas] find-like functionality in pathlib
Brendan Moloney
moloney at ohsu.edu
Wed Jan 6 17:48:45 EST 2016
Its important to keep in mind the main benefit of scandir is you don't have to do ANY stat call in many cases, because the directory listing provides some subset of this info. On Linux you can at least tell if a path is a file or directory. On windows there is much more info provided by the directory listing. Avoiding subsequent stat calls is also nice, but not nearly as important due to OS level caching.
Brendan Moloney
Research Associate
Advanced Imaging Research Center
Oregon Health Science University
________________________________
From: Python-ideas [python-ideas-bounces+moloney=ohsu.edu at python.org] on behalf of Guido van Rossum [guido at python.org]
Sent: Wednesday, January 06, 2016 2:42 PM
To: Random832
Cc: Python-Ideas
Subject: Re: [Python-ideas] find-like functionality in pathlib
I couldn't help myself and coded up a prototype for the StatCache design I sketched. See http://bugs.python.org/issue26031. Feedback welcome! On my Mac it only seems to offer limited benefits though...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160106/20e539bc/attachment.html>
More information about the Python-ideas
mailing list