<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Floating Sun &#187; zip</title>
	<atom:link href="http://floatingsun.net/tag/zip/feed/" rel="self" type="application/rss+xml" />
	<link>http://floatingsun.net</link>
	<description></description>
	<lastBuildDate>Sat, 14 Apr 2012 01:50:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Whats with __MACOSX in Zip files?</title>
		<link>http://floatingsun.net/2007/02/07/whats-with-__macosx-in-zip-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=whats-with-__macosx-in-zip-files</link>
		<comments>http://floatingsun.net/2007/02/07/whats-with-__macosx-in-zip-files/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 22:16:26 +0000</pubDate>
		<dc:creator>Diwaker Gupta</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://floatingsun.net/blog/2007/02/07/793/</guid>
		<description><![CDATA[More and more people are using Mac&#8217;s for development these days. As an example, a lot of the core developers from some of the leading web frameworks use Mac as their primary development platform. Several plugin and theme authors for &#8230; <a href="http://floatingsun.net/2007/02/07/whats-with-__macosx-in-zip-files/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://floatingsun.net/2005/03/20/whats-up-people/' rel='bookmark' title='Whats up people?'>Whats up people?</a></li>
<li><a href='http://floatingsun.net/2005/04/15/whats-next/' rel='bookmark' title='Whats next?'>Whats next?</a></li>
<li><a href='http://floatingsun.net/2005/07/30/whats-up-with-pagerank/' rel='bookmark' title='Whats up with PageRank?'>Whats up with PageRank?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>More and more people are using Mac&#8217;s for development these days. As an example, a lot of the core developers from some of the <a href="http://rubyonrails.org">leading</a> <a href="http://turbogears.org">web frameworks</a> use Mac as their primary development platform. Several plugin and theme authors for <a href="http://wordpress.org">WordPress</a> also develop on Mac. While this is a good thing, there is one particular side effect of this development that annoys me beyond relief.</p>
<p>It seems that the easiest way to archive something on Mac is to right click on your directory of choice in Finder and select &#8220;Archive as&#8230;&#8221;. This creates a Zip file, which then the developer can distribute to users. The problem is that Apple, like many other software giants, tends to twist and bend the user&#8217;s will and interpret what the user wants to mean something else. In this case, the natural thing for the OS to do is pack up that directory, and <strong>ONLY that directory</strong> in a Zip file. But no sir, how can that be? How can Apple &#8220;transparently&#8221; embed some metadata in the Zip file so that if some <em>other</em> Mac user opens it in Finder, he/she can benefit from this metadata.</p>
<p>Apple does this by creating <em>another folder</em> suspiciously named <strong>&#8221;%%__MACOSX%%&#8221;</strong> at the root of your <a class="zem_slink freebase/en/zip" title="ZIP (file format)" rel="wikipedia" href="http://en.wikipedia.org/wiki/ZIP_%28file_format%29">Zip archive</a>. Here&#8217;s an example (its the <a href="http://cutline.tubetorial.com">Cutline theme</a>):</p>
<p><code>0  02-02-07 12:37   Cutline 1.1/<br />
12292  01-31-07 17:16   Cutline 1.1/.DS_Store<br />
0  02-02-07 12:38   __MACOSX/<br />
0  02-02-07 12:38   __MACOSX/Cutline 1.1/<br />
82  01-31-07 17:16   __MACOSX/Cutline 1.1/._.DS_Store<br />
82  01-31-07 00:12   __MACOSX/Cutline 1.1/._ie6.css<br />
238  01-30-07 23:59   Cutline 1.1/ie7.css<br />
82  01-30-07 23:59   __MACOSX/Cutline 1.1/._ie7.css<br />
0  09-13-06 17:30   Cutline 1.1/images/<br />
12292  09-13-06 17:30   Cutline 1.1/images/.DS_Store<br />
0  02-02-07 12:38   __MACOSX/Cutline 1.1/images/<br />
82  09-13-06 17:30   __MACOSX/Cutline 1.1/images/._.DS_Store<br />
65705  09-11-06 15:55   Cutline 1.1/images/header_1.jpg<br />
34365  09-11-06 15:55   __MACOSX/Cutline 1.1/images/._header_1.jpg<br />
62867  09-11-06 15:59   Cutline 1.1/images/header_2.jpg<br />
33224  09-11-06 15:59   __MACOSX/Cutline 1.1/images/._header_2.jpg<br />
82708  09-11-06 16:01   Cutline 1.1/images/header_3.jpg<br />
34855  09-11-06 16:01   __MACOSX/Cutline 1.1/images/._header_3.jpg<br />
59780  09-11-06 16:03   Cutline 1.1/images/header_4.jpg<br />
33555  09-11-06 16:03   __MACOSX/Cutline 1.1/images/._header_4.jpg<br />
</code></p>
<p>This folder contains, among other things, thumbnails for images in the original archive. Now, this kind of unwanted, undesirable outcomes just really really annoy me. But I&#8217;ll try to keep my cool, and present a systematic analysis of not only why what Mac OSX does is <strong>wrong</strong>, but also <strong>stupid</strong> and <strong>unnecessary</strong>:</p>
<ul>
<li><strong>No surprises</strong>: As a user, I don&#8217;t like surprises, specially of the bad kind. If I request to archive a directory into a Zip file, thats <em>exactly</em> what I want. If I later unarchive that zip file, I should get my original directory back. Nothing more, nothing less. Any kind of unintended behavior is BAD.</li>
<li><strong>We are not stupid</strong>: If I wanted you to stick in an extra folder named &#8221;%%__MACOSX%%&#8221; in my archive, I&#8217;d let you know. Your users are a smart group, don&#8217;t insult them like this.</li>
<li><strong>I hate clutter</strong>: In my <a class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress</a> themes directory, I unzip Cutline. If each theme starts creating its own &#8221;%%__MACOSX%%&#8221; folder, then my themes directory would soon get cluttered with needless garbage.</li>
<li><strong>It breaks things</strong>: If <a class="zem_slink freebase/en/mac_os_x" title="Mac OS X" rel="homepage" href="http://www.apple.com/macosx/">MacOSX</a> did something harmless, like embed some metadata (like Zip file creator) into the Zip file itself, I might have been OK. But creating an entire tree structure in the archive just breaks things, in ways more than one. As an example, if like Cutline, each WordPress theme started creating &#8221;%%__MACOSX%%&#8221; folders in the root of the archive, then later if I install another theme, I&#8217;ll get lots of errors and file name collissions because the new theme will also try to extract in the &#8221;%%__MACOSX%%&#8221; folder. Not only this, some programs (like <a class="zem_slink freebase/en/gallery_project" title="Gallery Project" rel="homepage" href="http://gallery.menalto.com/">Gallery</a> and WordPress) have the ability to load plugins/images directly from Zip files. As a result, I&#8217;ll end up with unwanted images, themes and plugins in my setup. Not only this, it might actually just break your installation. Since you did not create the &#8221;%%__MACOSX%%&#8221; folder yourself, you don&#8217;t know what is in it, and it might not always obey the expecations of the software.</li>
<li><strong>Security</strong>: Again, you did not explicitly create that folder. What if someone creates a virus, that just modifies the default zip program on Mac to sneak in malicious payload via the &#8221;%%__MACOSX%%&#8221; folders in any new Zip archives you create? Apart from the security risk, its a time sink. Why should I go around cleaning up mess that I did not create? Software is supposed to make my life easier, not harder.</li>
<li><strong>Redundant</strong>: From the looks of it, it seems that all of the data inside the &#8221;%%__MACOSX%%&#8221; folder is created from the original directory. No external information is used/needed. If thats the case, why oh why would anyone <em>EVER</em> need this stupid new folder? If some metadata is needed, it can always be reconstructed from the original on demand. This seems downright stupid to me.</li>
</ul>
<p>Would someone, anyone, please explain Apple&#8217;s intent and motivation behind this &#8220;feature&#8221;? What are the benefits (if any)?</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=16d6c964-76be-4086-b49e-fa886b493ef0" alt="" /><span class="zem-script more-info"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p>Related posts:<ol>
<li><a href='http://floatingsun.net/2005/03/20/whats-up-people/' rel='bookmark' title='Whats up people?'>Whats up people?</a></li>
<li><a href='http://floatingsun.net/2005/04/15/whats-next/' rel='bookmark' title='Whats next?'>Whats next?</a></li>
<li><a href='http://floatingsun.net/2005/07/30/whats-up-with-pagerank/' rel='bookmark' title='Whats up with PageRank?'>Whats up with PageRank?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://floatingsun.net/2007/02/07/whats-with-__macosx-in-zip-files/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
	</channel>
</rss>

