CDTB icon indicating copy to clipboard operation
CDTB copied to clipboard

Extract pattern matching functionality is bad

Open Morilli opened this issue 1 year ago • 3 comments

The description for the --pattern option in wad extract reads: extract only files matching pattern with shell-like wildcards. One problem is that while it's possible to chain multiple commands, like -p "*.bin" -p "*.dds", this is not clear from reading the command description alone. Furthermore, it is not possible to filter only extensionless files. Perhaps the extracted paths should also be sanitized before being passed to the pattern matching function to allow filtering by "guessed" extensions, like .cdtb.bin.

Maybe just making the pattern a regex would also solve all of this, as you can match basically everything with regex alone.

Morilli avatar Oct 05 '24 22:10 Morilli