Apr-23-2024, 08:37 AM
(Apr-23-2024, 08:11 AM)snippsat Wrote: To mix ios and pathlib may be more confusing than it need to be,this dos just the same with pathlib alone.What I don't like with the pathlib solution is the call to
.is_file()
for every path, which does a system call while os.walk()
produces the list of files with internal mechanism. This needs to be checked but I suspect that os.walk()
does less system calls.
« We can solve any problem by introducing an extra level of indirection »