English/Japanese
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
containsA.txt
,B.bin
andC.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, butFOO.ZIP
does not containD.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) -
Download the binary package from Releases and extract the executable.
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