You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling walk_dir one often wishes to handle files and directories differently, the walk_dir call knows this internally (it calls .is_dir and readdir etc.) but this is not passed on to the users, and so users are forced to call .is_dir etc. themselves.
Maybe walk_dir could return a Iterator<DirEntry>, with (as a bikeshedable suggestion)
When calling
walk_dir
one often wishes to handle files and directories differently, thewalk_dir
call knows this internally (it calls.is_dir
andreaddir
etc.) but this is not passed on to the users, and so users are forced to call.is_dir
etc. themselves.Maybe
walk_dir
could return aIterator<DirEntry>
, with (as a bikeshedable suggestion)(Inspired by http://legacy.python.org/dev/peps/pep-0471/ , which shows dramatic performance improvements with changes similar to this.)
The text was updated successfully, but these errors were encountered: