Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

__MACOSX foldres when zipping a file

Hello,

i often need to make a zip file on my mac and put it on the internet for others to download. when i then open the zipfile i see a __MACOSX folder.

obviously this is for the resource fork and junk like that. this is very confusing for Windows users. So how do i suppress this ?

tyvm

Imac intel 24' alu, Mac OS X (10.5.4)

Posted on Jul 31, 2008 5:59 AM

Reply
8 replies

Jul 31, 2008 12:33 PM in response to Andy Vandenberghe

Yes, those directories contain resource fork information and other metadata. I don't know of a way to suppress this if you use the built-in "compress" function in the Finder. However, you can easily create a zip file from the command line using the "zip" command (or tar/gz or bzip2 commands, for that matter), which won't contain this extra data.

Additionally, you could probably also write an Automator workflow that could zip up a folder or a bunch of selected objects without the added stuff.

Aug 27, 2008 8:53 AM in response to Chuck Mcfee

Yes, in terminal. You can just type 'zip' to get a basic "how-to", or 'man zip' to get full details. I used:

zip -r zipname.zip .

to put all files and subdirs from my current directory into 'zipname.zip'. It still included .DS_Store (in every directory) however, so I tried:

zip -r zipname.zip . -x .DS_Store

but the .DS_Store files are not excluded from the ZIP operation. Anyone know how to keep these files from being included?

__MACOSX foldres when zipping a file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.