• 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: Question about zipping files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about zipping files


  • Subject: Re: Question about zipping files
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 14 Feb 2010 22:33:59 -0800

On Feb 14, 2010, at 9:28 PM, Gideon King wrote:

> 1. Use NSTask to create a zip file, passing in as arguments all the filenames to zip. My question about this would be whether I would run into any restrictions with the length of the command which well be beyond the old 1024 character limits (not sure if any command line argument limits are still extant).

There is no 'command line' with NSTask (or with the execv system call it uses.) You pass an array of individual arguments that end up as the new process's argv[] array. There are no size limits that I know of.

Note that this also means there is no need to encode characters in filesystem paths, even spaces and quotes, since they're not getting parsed by any shell.

—Jens_______________________________________________

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

References: 
 >Question about zipping files (From: Gideon King <email@hidden>)

  • Prev by Date: Re: How is the best way to emulate the plist editor GUI?
  • Next by Date: Re: How is the best way to emulate the plist editor GUI?
  • Previous by thread: Re: Question about zipping files
  • Next by thread: Re: Question about zipping files
  • Index(es):
    • Date
    • Thread