<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Scripts on Madprof&#39;s workshop</title>
    <link>http://www.madprof.net/tags/scripts/</link>
    <description>Recent content in Scripts on Madprof&#39;s workshop</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 31 Oct 2013 05:34:54 +0100</lastBuildDate>
    <atom:link href="http://www.madprof.net/tags/scripts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>merging directories with the magic of python</title>
      <link>http://www.madprof.net/posts/merging-directories-with-the-magic-of-python_1/</link>
      <pubDate>Thu, 31 Oct 2013 05:34:54 +0100</pubDate>
       <guid isPermaLink="false">http://www.madprof.net/posts/merging-directories-with-the-magic-of-python_1/</guid> 
      <description>&lt;p&gt;We finally got the last projects out of that monstrosity &amp;lsquo;Final Cut Server&amp;rsquo;, but one project at the end was a nightmare to export, and we weren&amp;rsquo;t sure which files from the end actually were in a different version of the project that we already had.&lt;/p&gt;
&lt;p&gt;We essentially needed to merge two different versions of projects directories, making sure not to lose any files, and we didn&amp;rsquo;t want to lose the organization of the files.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s a quick python script I wipped up to make it quicker.&lt;/p&gt;
&lt;p&gt;With the 4000 odd files in the project, it took under a second to run, and it turned out we only had about 20 files which hadn&amp;rsquo;t already been merged.  Much simpler to sort out.&lt;/p&gt;
&lt;p&gt;The script took about 10 minutes to write and test. This is why you should learn to program.  Hacking stuff like this up is easy, and saves &lt;em&gt;so&lt;/em&gt; much time.&lt;/p&gt;
&lt;p&gt;(Yes, you probably could do this with a couple of lines of perl or BASH, but what the heck.)&lt;/p&gt;
&lt;!-- raw HTML omitted --&gt;</description>
    </item>
  </channel>
</rss>
