On Mon, May 30, 2011 at 10:45 AM, Vyacheslav Karamov
<ubuntul...@yandex.ru> wrote:
> Hi All!
> ...
>   [task setLaunchPath:@"/usr/bin/unzip"];
>   NSArray * args = [NSArray arrayWithObjects:@"-a ", listsPath, @" -d ",
> sharedPath, nil];

In addition to what others have said regarding spaces and such, when I
was looking around for this, most of the posts at various sources
suggested using ditto as opposed to unzip. Someone can correct me if
I'm wrong, but AFAIK unzip doesn't support resource forks (though you
can unzip 'em to a separate file), and there may be other metadata it
ignores/goofs up/forgets/etc.

Launching ditto to do this is easy:

[task setLaunchPath:@"/usr/bin/ditto"];
[task setArguments: [NSArray arrayWithObjects:@"-x", @"-k",
zipFilePath, someTargetDirectory, nil] ];

-Jim....
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to