"_MACOSX" file showing up from .zip file

Any time I compress a folder into a .zip file, anyone who downloads it on their Windows computer will see a random "_MACOSX" file show up with it. This is a big problem for me because the people I send these to usually don't need to unzip the file to be able to use it. But now they have to in order to take out the file every time, or else it will not work. I would like to know if there is any way to avoid this from happening.

Posted on Sep 6, 2020 12:10 AM

Reply
1 reply

Sep 6, 2020 5:48 AM in response to Netrovek

You can exclude all dot files and the "__MACOSX" content by creating the zip file on the command-line with exclusion syntax as shown in this Ask Different article.


You can check if an existing zip file has "__MACOSX" in it from the Terminal command-line. A count (-c) of zero means it does not have the string within it.


zipinfo ./foo.zip | grep -c "__MACOSX"



Simply right clicking on a folder, or multiple, selected files in macOS and choosing compress will include the "__MACOSX" sub-folder references.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"_MACOSX" file showing up from .zip file

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