An open API service indexing awesome lists of open source software.

https://github.com/imarsman/gounzip

Unzip to match gozip
https://github.com/imarsman/gounzip

Last synced: 17 days ago
JSON representation

Unzip to match gozip

Awesome Lists containing this project

README

        

# gounzip
Unzip to match gozip

## Arguments

* `gounzip -h` - print usage information
* `gounzip -l ` - list contents of zipfile
* `gounzip ` - unzip zipfile
* `gounzip -u ` - unzip zipfile adding new file but only update newer versions
* `gounzip -f ` - unzip zipfile but only update newer versions of existing
* `gounzip -d ` - unzip zipfile to destination as root
* `gozip -f ...` - 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
```