Elektrine lite

← Feed

@gspeed0689@mapstodon.space

Post #2273798

2026-05-07 05:36 UTC

@eliocamp@mastodon.social just addressing the example py code and not the article or idea of python being bad for this, there is a nicer way now with Pathlib path = pathlib.Path(path) files = list(path.rglob("*"))

Replies (2)

  • @eliocamp@mastodon.social 2026-05-07 05:53

    @gspeed0689@mapstodon.space That's much better. I wonder why no one proposed that answer in the various SO questions and articles I found when googling the problem.

    Open ##2273799

  • @cpontvieux@piaille.fr 2026-05-07 06:25

    @gspeed0689@mapstodon.space @eliocamp@mastodon.social you don't need the list. Use glob for non recursive.

    Open ##2273803