gounzip

command module
v0.0.0-...-4bb20d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

gounzip

Unzip to match gozip

Arguments

  • gounzip -h - print usage information
  • gounzip -l <zipfile> - list contents of zipfile
  • gounzip <zipfile> - unzip zipfile
  • gounzip -u <zipfile> - unzip zipfile adding new file but only update newer versions
  • gounzip -f <zipfile> - unzip zipfile but only update newer versions of existing
  • gounzip -d <zipfile> - unzip zipfile to destination as root
  • gozip -f <zipfile> <file>... - only update newer files already in archive

Usage

To build

go build .

To run tests

go test -v .

Notes

Here is a sample list

  compressed uncompressed      date       time        name
---------------------------------------------------------------------------
        3495        7210   2021-09-08  19:02:28  sample/1.txt
        2330        4621   2021-09-08  19:02:28  sample/2.txt
        1174        2178   2021-09-08  19:02:28  sample/3.txt
        1021        1827   2021-09-08  19:02:28  sample/4.txt
         497         918   2021-09-08  19:02:28  sample/5.txt
        3495        7210   2021-09-07  23:26:00  sample/orig/1.txt
        2330        4621   2021-09-07  23:26:00  sample/orig/2.txt
        1174        2178   2021-09-07  23:26:00  sample/orig/3.txt
        1021        1827   2021-09-07  23:26:00  sample/orig/4.txt
         497         918   2021-09-07  23:26:00  sample/orig/5.txt
---------------------------------------------------------------------------
       17034       33508                         10

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL