Re: Question about zipping files
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