3 ms·
I think using pathlib instead of the more old-school os.walk and os.path.getmtime would clean that code up substantially!
by j0057 2y ago
I think using pathlib instead of the more old-school os.walk and os.path.getmtime would clean that code up substantially!
- simonw 2y agoI agree, and if I’d written this code by hand I would have used pathlib. I basically stopped caring as soon as I ran Claude’s code and it did the thing I wanted it to do.
- sitkack 2y agoSome updates, including using pathlib. https://claude.site/artifacts/e7b11dfa-0ab8-46ed-97bc-5c101183e704 https://claude.site/artifacts/e7b11dfa-0ab8-46ed-97bc-5c1011...