Hacker News new | past | comments | ask | show | jobs | submit login

I think using pathlib instead of the more old-school os.walk and os.path.getmtime would clean that code up substantially!



I 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.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: