Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Zip removes resource forks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Zip removes resource forks
Authored by: mickeysattler on Dec 22, '10 04:08:57PM
Here in almost-2011 it seems that tar no longer strips resource forks. Here's how I tested it on a folder containing pictures which have preview thumbnail resource fork data:

$ du -s pix-w-resources/
69752	pix-w-resources/
$ tar cf foo.tar pix-w-resources/
$ rm -rf pix-w-resources
$ tar xf foo.tar
$ du -s pix-w-resources
69752	pix-w-resources
$
I stumbled over this because I'm *trying* to strip resource fork data from the bazillions of photos I have which are taking up space. What *does* strip resources is:

$ find pix-w-resources -type f -name \*.jpg -print -exec cp /dev/null {}/..namedfork/rsrc \;
Which empties the resource fork to 0-length for all file with a name ending in ".jpg". Tailor as necessary, make backups beforehand, etc.

[ Reply to This | # ]