Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hymkor/verifyarc
Check if tar or zip file is corrupted by comparing it with the original file
https://github.com/hymkor/verifyarc
golang tar zip
Last synced: 6 days ago
JSON representation
Check if tar or zip file is corrupted by comparing it with the original file
- Host: GitHub
- URL: https://github.com/hymkor/verifyarc
- Owner: hymkor
- License: mit
- Created: 2023-11-14T11:37:01.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-02-23T15:20:48.000Z (9 months ago)
- Last Synced: 2024-06-21T08:06:08.014Z (5 months ago)
- Topics: golang, tar, zip
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
verifyarc
=========English/[Japanese](./README_ja.md)
A tool that verifies that when there is a zip/tar file and a directory in which it seems to have been extracted, both match and it is safe to delete one.
```
$ verifyarc {-C (DIR)} foo.zip
``````
$ verifyarc {-C (DIR)} foo.tar
``````
$ gzip -dc FOO.tar.gz | verifyarc {-C (DIR)} -
```- When the suffix of the archive is not .zip, it is regarded as an uncompressed tar archive.
- STDIN is always regarded as a tar stream.
- When `foo.zip` contains `A.txt`, `B.bin` and `C.exe`, `verifies` compares them and `(DIR)/A.txt`, `(DIR)/B.bin` and `(DIR)/C.exe`.
- When it finds a different file, it stops immediately.
- When `(DIR)/D.obj` exists, but `FOO.ZIP` does not contain `D.obj`, `verifies` reports it.
- It continues until displaying all files that are not found in the archive.
- When `-C (DIR)` is omitted, `(DIR)` is set the current working directory.```
$ verifyarc {-C (DIR)} (SUBDIR)
```- Compare with extracted files instead of ones in an archive
- Test whether (SUBDIR) is same as (DIR)/(SUBDIR) or not
- It is equivalent to `tar cf - (SUBDIR) | verifyarc -C (DIR) -`Install
-------Download the binary package from [Releases](https://github.com/hymkor/verifyarc/releases) and extract the executable.
### for scoop-installer
```
scoop install https://raw.githubusercontent.com/hymkor/verifyarc/master/verifyarc.json
```or
```
scoop bucket add hymkor https://github.com/hymkor/scoop-bucket
scoop install verifyarc
```