Jun-17-2021, 06:01 AM
(This post was last modified: Jun-17-2021, 06:01 AM by Gribouillis.)
You could simplify this in
Also programming is not only copying and pasting working snippets. Try to understand what's going on.
for f in Path(dirtoscan).iterdir(): ...but you should perhaps consider the case where dirtoscan contains items that are not ordinary files, such as directories...
Also programming is not only copying and pasting working snippets. Try to understand what's going on.