{"id":18053772,"url":"https://github.com/hymkor/verifyarc","last_synced_at":"2025-04-05T08:21:29.074Z","repository":{"id":207809344,"uuid":"718581548","full_name":"hymkor/verifyarc","owner":"hymkor","description":"Check if tar or zip file is corrupted by comparing it with the original file","archived":false,"fork":false,"pushed_at":"2024-02-23T15:20:48.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T15:50:55.063Z","etag":null,"topics":["golang","tar","zip"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hymkor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T11:37:01.000Z","updated_at":"2024-02-25T01:26:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"171bc638-2ec7-4271-9595-24f429f7b0b2","html_url":"https://github.com/hymkor/verifyarc","commit_stats":null,"previous_names":["hymkor/verifyarc"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Fverifyarc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Fverifyarc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Fverifyarc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hymkor%2Fverifyarc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hymkor","download_url":"https://codeload.github.com/hymkor/verifyarc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247307327,"owners_count":20917448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","tar","zip"],"created_at":"2024-10-31T00:08:00.799Z","updated_at":"2025-04-05T08:21:28.841Z","avatar_url":"https://github.com/hymkor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"verifyarc\r\n=========\r\n\r\nEnglish/[Japanese](./README_ja.md)\r\n\r\nA 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.\r\n\r\n```\r\n$ verifyarc {-C (DIR)} foo.zip\r\n```\r\n\r\n```\r\n$ verifyarc {-C (DIR)} foo.tar\r\n```\r\n\r\n```\r\n$ gzip -dc FOO.tar.gz | verifyarc {-C (DIR)} -\r\n```\r\n\r\n- When the suffix of the archive is not .zip, it is regarded as an uncompressed tar archive.\r\n    - STDIN is always regarded as a tar stream.\r\n- 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`.\r\n    - When it finds a different file, it stops immediately.\r\n- When `(DIR)/D.obj` exists, but `FOO.ZIP` does not contain `D.obj`, `verifies` reports it.\r\n    - It continues until displaying all files that are not found in the archive.\r\n- When `-C (DIR)` is omitted, `(DIR)` is set the current working directory.\r\n\r\n```\r\n$ verifyarc {-C (DIR)} (SUBDIR)\r\n```\r\n\r\n- Compare with extracted files instead of ones in an archive\r\n    - Test whether (SUBDIR) is same as (DIR)/(SUBDIR) or not\r\n    - It is equivalent to `tar cf - (SUBDIR) | verifyarc -C (DIR) -`\r\n\r\nInstall\r\n-------\r\n\r\nDownload the binary package from [Releases](https://github.com/hymkor/verifyarc/releases) and extract the executable.\r\n\r\n### for scoop-installer\r\n\r\n```\r\nscoop install https://raw.githubusercontent.com/hymkor/verifyarc/master/verifyarc.json\r\n```\r\n\r\nor\r\n\r\n```\r\nscoop bucket add hymkor https://github.com/hymkor/scoop-bucket\r\nscoop install verifyarc\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhymkor%2Fverifyarc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhymkor%2Fverifyarc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhymkor%2Fverifyarc/lists"}