{"id":19023,"date":"2022-02-26T18:51:53","date_gmt":"2022-02-26T17:51:53","guid":{"rendered":"https:\/\/ekiwi-blog.de\/19023\/was-ist-der-__macosx-ordner\/"},"modified":"2022-02-26T19:15:03","modified_gmt":"2022-02-26T18:15:03","slug":"what-is-macosx-folder","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/19023\/what-is-macosx-folder\/","title":{"rendered":"What is the __MACOSX folder?"},"content":{"rendered":"<p>Occasionally you receive a compressed Zip file in which beside the actual folder also a folder with two prefixed underscores named &#8220;__MACOSX&#8221; is contained.<\/p>\n<p>Of course, you wonder what this __MACOSX folder is all about and what it is supposed to be good for?<\/p>\n<figure id=\"attachment_19021\" aria-describedby=\"caption-attachment-19021\" style=\"width: 661px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-19021 size-full\" title=\"MACOSX folder inside the ZIP file\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/zip-archive-with-macosx-folder.jpg\" alt=\"Screenshot look into the zip-file\" width=\"661\" height=\"384\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/zip-archive-with-macosx-folder.jpg 661w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/zip-archive-with-macosx-folder-300x174.jpg 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><figcaption id=\"caption-attachment-19021\" class=\"wp-caption-text\">look into the zip-file<\/figcaption><\/figure>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/19023\/what-is-macosx-folder\/#Contents_of_the_folder\" >Contents of the folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/19023\/what-is-macosx-folder\/#Memory_size_of_the_MACOSX_directory\" >Memory size of the MACOSX directory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/19023\/what-is-macosx-folder\/#Origin_of_the_MACOSX_folder\" >Origin of the __MACOSX folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ekiwi-blog.de\/en\/19023\/what-is-macosx-folder\/#Use_of_the_MACOSX_directory\" >Use of the __MACOSX directory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ekiwi-blog.de\/en\/19023\/what-is-macosx-folder\/#Problems_with_MACOSX_folder_can_occur\" >Problems with __MACOSX folder can occur<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Contents_of_the_folder\"><\/span>Contents of the folder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you look into the MACOSX folder, you will find exactly the same directories and files as in the actual zip file. However, the files differ slightly in the file name. The original file name is preceded by a dot and underscore in the form:<\/p>\n<blockquote><p>._FileName.ext<\/p><\/blockquote>\n<figure id=\"attachment_19017\" aria-describedby=\"caption-attachment-19017\" style=\"width: 700px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-19017 size-full\" title=\"Files in the MACOSX folder\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/content-of-macosx-folder.jpg\" alt=\"Screenshot Windows Explorer with content of __MACOSX directory\" width=\"700\" height=\"604\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/content-of-macosx-folder.jpg 700w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/content-of-macosx-folder-300x259.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><figcaption id=\"caption-attachment-19017\" class=\"wp-caption-text\">Compare Content of __MACOSX-Folder with original files<\/figcaption><\/figure>\n<p>If you double-click on the files to open them, you get a message that the file cannot be opened with the linked default program. Opening it in a text editor shows only hex-code, so you can assume that it is a special binary file.<\/p>\n<p>This notation also suggests that they are actually hidden system files that have a specific use, but should not actually be visible to the user.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Memory_size_of_the_MACOSX_directory\"><\/span>Memory size of the MACOSX directory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you look at the size of the files in the __MACOSX directory, you will see that the files are relatively small compared to the original files. In my case the files are only a few 100Byte. Here in Windows Explorer rounded up to 1kB.<\/p>\n<figure id=\"attachment_19019\" aria-describedby=\"caption-attachment-19019\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-19019 size-full\" title=\"File size of MACOSX files\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/properties-memory-size-of-macosx-dictionary.jpg\" alt=\"Screenshot Property Window with file sizes\" width=\"600\" height=\"663\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/properties-memory-size-of-macosx-dictionary.jpg 600w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/02\/properties-memory-size-of-macosx-dictionary-271x300.jpg 271w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-19019\" class=\"wp-caption-text\">Properties and file size<\/figcaption><\/figure>\n<h2><span class=\"ez-toc-section\" id=\"Origin_of_the_MACOSX_folder\"><\/span>Origin of the __MACOSX folder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you take a closer look at the folder name, you can already guess. This folder is created when users of a MacBook with the corresponding operating system MacOS create the Zip file. The Zip file must have been created with the Zip compressor built into the operating system. This function has been supported by the Apple operating system since OS X 10.3. The Apple user simply creates the ZIP file by <em>Right-Clicking<\/em> and clicking on &#8220;<em>Compress file<\/em>&#8220;.<\/p>\n<p>On a MacBook, this folder and the associated files are not displayed to the user. But if you open a file zipped under Mac OS X under the Windows operating system, Windows cannot do anything with it and displays the folder __MACOSX like a normal folder.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Use_of_the_MACOSX_directory\"><\/span>Use of the __MACOSX directory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This directory or the associated files contain compression functions specific to the operating system.<\/p>\n<p>These are so-called <a href=\"https:\/\/en.wikipedia.org\/wiki\/Resource_fork\" target=\"_blank\" rel=\"noopener\">Resource Forks<\/a>. Such files are used to store some metadata to the original data. What this is exactly is difficult to say for the specific case. You would have to look at the files with a suitable editor, like <a href=\"https:\/\/en.freedownloadmanager.org\/Mac-OS\/Resorcerer.html\" target=\"_blank\" rel=\"noopener\">Resorcerer<\/a>. It can be information like the last window size or window position. However, resources such as file icons or fonts can also be included there.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Problems_with_MACOSX_folder_can_occur\"><\/span>Problems with __MACOSX folder can occur<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In principle, this folder does not cause any problems, even if you open the ZIP file under Windows and Linux. As mentioned above, the MACOSX folder is displayed under these operating systems, but otherwise the files are ignored.<\/p>\n<p>However, problems and error messages can occur if the ZIP package is used as an installation file. This can happen if, for example, a WordPress plugin is packed into a ZIP file and then uploaded within WordPress.<\/p>\n<p>To avoid problems with the __MACOSX folder, you have to make sure that it is not created in the first place. This is best done with another third-party zip program, such as <a href=\"https:\/\/apps.apple.com\/app\/izip-archiver\/id478738838\" target=\"_blank\" rel=\"noopener\">iZip<\/a>.<\/p>\n<p>You can also delete the __MACOSX folder, which is easy on Windows because it is visible. Under MacOS you can use the terminal by entering the following command:<\/p>\n<pre><code>zip -d myarchiv.zip \"__MACOSX*\"<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Occasionally you receive a compressed Zip file in which beside the actual folder also a folder with two prefixed underscores<\/p>\n","protected":false},"author":2,"featured_media":14675,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1953,1944,1954,1952,1947,1948,1949,1951],"class_list":["post-19023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-compress","tag-computer-en","tag-file-en","tag-file-system","tag-it-en","tag-komprimierung-en","tag-pc-en","tag-zip-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/19023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=19023"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/19023\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/14675"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=19023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=19023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=19023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}