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
- Host: GitHub
- URL: https://github.com/imarsman/gounzip
- Owner: imarsman
- License: apache-2.0
- Created: 2021-09-10T03:56:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-10T18:45:44.000Z (over 3 years ago)
- Last Synced: 2025-02-17T05:11:15.703Z (3 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```