PDA

View Full Version : Problems compressing folders copied to fat32 USB Stick


xgkick
03-26-2010, 03:45 AM
Hi,

I had a problem today compressing a folder and eventually figured out that if I copy a folder onto my Fat32 usb stick and then copy back onto the mac, it won't compress (Compress just hangs)

Is there an obvious answer to why this happens? (this is in Snow Leopard)

trevor
03-26-2010, 12:15 PM
The term 'compress' can mean many things. Can you use a lot more words and a lot more detail to describe what you are doing when you compress things?

Trevor

SirDice
03-26-2010, 12:24 PM
Compress doesn't work on directories. It only works on files.

Use tar+gzip:


tar -zcvf myarchive.tgz somedir

xgkick
03-26-2010, 07:13 PM
What I mean by compress is right clicking on the folder and selecting "Compress <foldername>" from the menu. That creates a Zip of the folder.

hayne
03-26-2010, 08:25 PM
I suspect that the problem may be related to the extra "._" files that the Finder creates when you copy something with resource forks to a non-HFS filesystem.
When you copy it back, those files are supposed to get re-absorbed (to create the resource forks) and hence disappear, but maybe that didn't happen and their presence is ticking a bug in the framework that handles the "Compress" operation in Finder.