title: What's the best way to perform a differential between a list of directories?
body: <p>I am interested in looking at a list of directories and comparing the previous list with a current list of directories and setting up a script to do so. Maybe in perl or as a shell script. </p>
  
  <p>Should I use something like diff? Programatically, what would be an ideal way to do this? For example let say I output the diff to an output file, if there is no diff then exit, if there is results, I want to see it. </p>
  
  <p>Let's for example I have the following directories today:</p>
  
  <pre><code>/foo/bar/staging/abc
  /foo/bar/staging/def
  /foo/bar/staging/a1b2c3
  </code></pre>
  
  <p>Next day would look like this where a directory is either added, or renamed:</p>
  
  <pre><code>/foo/bar/staging/abc
  /foo/bar/staging/def
  /foo/bar/staging/ghi
  /foo/bar/staging/a1b2c4
  </code></pre>