title: How to test if a directory is empty with find
body: <p>I am trying to write an if statement in a unix shell script that returns true if it's empty, and false if it's not.</p>
  
  <p>This type of thing...</p>
  
  <pre><code>if directory foo is empty then
  echo empty
  else
  echo not empty
  fi
  </code></pre>
  
  <p>How do I do this?  I'm told find is a good palce to start</p>