roperl has asked for the wisdom of the Perl Monks concerning the following question:
Options for gz and unzipmy $ft = File::Type->new(); my $type = $ft->mime_type($filename); if ( $type eq "application/zip" ) { ..... } if ( $type eq "application/x-gzip" ) { .... }
$ gzip -h Usage: gzip [OPTION]... [FILE]... Compress or uncompress FILEs (by default, compress FILES in-place). ..... -t, --test test compressed file integrity .... $ unzip -h ... Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d +exdir] Default action is to extract files in list, except those in xlist, t +o exdir; file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for us +age). ... -f freshen existing files, create none -t test compressed archi +ve data ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File integrity checker
by no_slogan (Deacon) on Aug 24, 2017 at 16:21 UTC | |
by roperl (Beadle) on Aug 24, 2017 at 16:49 UTC | |
by pryrt (Abbot) on Aug 24, 2017 at 17:06 UTC | |
by Anonymous Monk on Aug 24, 2017 at 17:14 UTC | |
by no_slogan (Deacon) on Aug 24, 2017 at 17:37 UTC | |
by roperl (Beadle) on Aug 24, 2017 at 21:05 UTC | |
by roperl (Beadle) on Aug 24, 2017 at 18:42 UTC | |
by no_slogan (Deacon) on Aug 24, 2017 at 18:48 UTC | |
|
Re: File integrity checker
by Anonymous Monk on Aug 24, 2017 at 18:43 UTC | |
by roperl (Beadle) on Aug 24, 2017 at 21:08 UTC | |
by no_slogan (Deacon) on Aug 24, 2017 at 22:44 UTC | |
by roperl (Beadle) on Aug 29, 2017 at 17:40 UTC | |
by Anonymous Monk on Aug 29, 2017 at 18:11 UTC | |
|