Re: Where are my bytes hiding?
Re: Where are my bytes hiding?
- Subject: Re: Where are my bytes hiding?
- From: Jens Alfke <email@hidden>
- Date: Thu, 05 May 2016 12:37:09 -0700
> On May 5, 2016, at 12:01 PM, Martin Wierschin <email@hidden> wrote:
>
> Is there any way a user file might be compressed in such a way through normal user actions?
Yes, there are various user-level utilities for compressing files, like Clusters (http://clustersapp.com <http://clustersapp.com/>). The `ditto` tool also has a flag for compressing the destination file (--compress, I think).
Theoretically anything on an HFS+ volume can be compressed, except for a few files in /System that need to be read early at boot before the file-compression subsystem comes online.
I looked around a bit but couldn’t find any info about an API for compressing files. I’d be leery of constructing those extended attributes or resource forks myself. I suppose one could use NSTask to invoke `ditto`.
—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