Hacker News new | ask | show | jobs
by TomK32 1283 days ago
Then the reasoning for this weird code is that it's meant as a base to be extended. E.g. handling more variants of filenames? Anyways, maybe it's worth submitting a pull request with simpler code.