title: Create Directory if it doesn't exist with Ruby
body: <p>I am trying to create a directory with the following code:</p>
  
  <pre><code>Dir.mkdir("/Users/Luigi/Desktop/Survey_Final/Archived/Survey/test")
      unless File.exists?("/Users/Luigi/Desktop/Survey_Final/Archived/Survey/test")  
  </code></pre>
  
  <p>However, I'm receiving this error:</p>
  
  <blockquote>
    <p>No such file or directory - /Users/Luigi/Desktop/Survey_Final/Archived/Survey/test (Errno::ENOENT)</p>
  </blockquote>
  
  <p>Why is this directory not being created by the <code>Dir.mkdir</code> statement above?</p>