• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Query about Zip command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query about Zip command


  • Subject: Re: Query about Zip command
  • From: Andrew Farmer <email@hidden>
  • Date: Fri, 23 May 2008 01:53:20 -0700

On 23 May 08, at 01:26, parag vibhute wrote:
I am developing cocoa application & using NSApplescript class to do shell
scripting which involves zip command. I am using zip command for zipping the
files because there is no framework api available for it. Even though libz
is available, it is not easy to use. (I can't use NSData because I am using
output zip file for distribution as an alternate to pkg). My query is "Is it
possible that any Mac system will not have zip command?" because if there is
then my code will fail. I went through docs & came to know that Finder uses
its own code for archiving the files.

Two answers:

1. The zip binary is a required component on 10.4 and above. It was optional but installed by default on 10.3, and was not installed by default on 10.2 and earlier. Statistics from Adium and the Omni Group both suggest that anything before 10.3 is basically nonexistent in the wild, so you're safe assuming it's there.

2. While libz may get you part of the way to reading PKZip archives, it only implements the deflate compression algorithm - it won't read the directory components of the archive for you. So don't expect it to do all the work for you.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Query about Zip command
      • From: "parag vibhute" <email@hidden>
References: 
 >Query about Zip command (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: Properties & GC (was Re: Cocoa et al as HCI usability problem)
  • Next by Date: Re: Query about Zip command
  • Previous by thread: Re: Query about Zip command
  • Next by thread: Re: Query about Zip command
  • Index(es):
    • Date
    • Thread