11

I have a zip file that contains another type of archive (in this case, a jee app server WAR file, but this happens with other contained archive types as well). When I unzip the zip file, instead of presenting me with the contained .war file, the war file is decompressed as well. Is there a way around this? I've tried with 'The Unarchiver', 'Archive Utility', and the command line 'unzip' utility.

1
  • 1
    Did you try with 7-Zip?
    – user3463
    Jul 2, 2010 at 5:04

2 Answers 2

23

Open the Archive Utility (/System/Library/CoreServices/Archive Utility), open its preferences (in the Archive Utility > Preferences menu), and uncheck the "Keep expanding if possible" option.

p.s. If you want to get at these prefs easily (e.g. if you want to be able to switch this setting on & off at whim), you can install the Archive Utility prefs into System Preferences by opening the Archive Utility package (right-click or control-click on the application, and select Show Package Contents), then navigate to Contents/Resources, and double-click Archives.prefPane to install it.

3
  • 1
    Neat, had no idea there was a hidden prefPane
    – ghoppe
    Jul 2, 2010 at 16:20
  • Nor did I. Great tip man!
    – peelman
    Jul 3, 2010 at 3:17
  • 1
    Bizarre and good to know +1 Oct 5, 2010 at 21:29
0

IMHO the command line unzip tool should just unzip the specified file. It should not unpack double-zipped files.

You must log in to answer this question.

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