Re: OK, break it down for me... (question about gzip)
Re: OK, break it down for me... (question about gzip)
- Subject: Re: OK, break it down for me... (question about gzip)
- From: Graham Cox <email@hidden>
- Date: Tue, 8 Jun 2010 16:16:34 +1000
It has been pointed out to me off-list that I've been labouring under the misapprehension that gzip is equivalent to zip, which appears not to be the case. It might explain why it was hard to find relevant info.
So I need zip then... otherwise same discussion applies. I don't really care how I get there, I just need a folder transformed into a single file that is efficiently packed for transmission to a website. The format isn't really relevant, but transmission efficiency, and keeping the folder integrity, is.
--Graham
On 08/06/2010, at 4:04 PM, Graham Cox wrote:
> I need to be able to make a .gzip file from a FOLDER on my hard disk programatically.
>
> I've searched the archives and Googled for it, and now I'm just confused. Some folk advocate linking to the library directly, other to invoke it via NSTask. Since it's a folder I need to compress, not in-memory data, the direct linking approach might not do it (then again it might, but I haven't been able to find out the right information about how I could do that). The NSTask approach might be simpler as it is easy to pass in the path to the folder to be compressed, but how do I find the correct, reliable launch path that will always work no matter how my app is being run? I'm sure that's simple (perhaps so simple it's taken for granted, which is why I have drawn a blank with finding any instructions as to how to do this).
>
> So would some one break it down for me? I seem to be wasting too much time focusing on this trivial operation that is less than 1% of my object's functionality.
>
> --Graham
_______________________________________________
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