GENie icon indicating copy to clipboard operation
GENie copied to clipboard

fix os.matchnext for entries starting with a dot

Open IreNox opened this issue 4 years ago • 1 comments

fixed the problem that os.matchfiles and os.matchdirs doesn't return files and dirs starting with a dot.

IreNox avatar Jul 01 '20 23:07 IreNox

I'd rather see it as an opt-in option. More often than not you don't want to include them. E.g, .git, .hg, .DS_Store, various cache folders, etc. It also matches the behavior of other APIs/programs. ls doesn't show them by default, glob doesn't include them by default, bash doesn't match them against *, only .*.

Premake 5 took the same approach as bash: os.matchfiles("*") doesn't match dot files, os.matchfiles(".*") matches only dot files. Maybe we should too, so if you want both you have to do os.matchfiles("*", ".*").

rhoot avatar Jul 05 '20 03:07 rhoot

I switched back to Premake.

IreNox avatar Dec 22 '22 00:12 IreNox