1

I have a folder that contains many files, including some .zip, .tar, .tgz, 7z, and gz files. How can I test all archive files in this folder to verify if they are corrupted or not?

The folder contains subfolders, which also contain archive files that I want to check. I use Mac OS X 10.10.

On Microsoft Windows I use some file manager to list all archives:

enter image description here

then use 7zip to test all archives at once:

enter image description here

2
  • I haven't found any solution so far. Mar 28, 2016 at 17:10
  • So I am still interested if someone has any idea. Mar 28, 2016 at 17:10

1 Answer 1

1

You will probably need to run 7z from terminal to accomplish this. In the terminal, you can use command such as

7z t -r *.tar

If you are certain that the folder contains only archives that can 7zip handle, then it will work

7z t -r *
3
  • 2
    7z is not part of a standard macOS installation as far as I know.
    – nohillside
    Jan 20, 2022 at 7:51
  • It is not, but can be downloaded for free. Also, there is 7z archive in question, therefore I kind of expected the user to have this tool installed already.
    – Jan
    Jan 20, 2022 at 8:44
  • 1
    It might benefit future visitors to see how the tool can installed.
    – nohillside
    Jan 20, 2022 at 9:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .