I'd rather check the MIME type of the file with File::MMagic or similar to decide whether it's an archive. Filenames come from the client so I distrust them.
Your subclass looks reasonable if you can trust the client, though.
In reply to Re: filenames from filehandles
by chromatic
in thread filenames from filehandles
by CassJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |