title: node.js mkdir enonent when passed a string
body: <p>I'm trying to build folders with a string, but I keep erroring out, everything looks good, but I'm obviously missing something, any help would be great.</p>
  
  <pre><code>var setFile = 'dijit/analysis/images/'
  folders = setFile.substr(0,setFile.lastIndexOf('/'));
  
  fs.mkdir(folders, function(err){
    console.log('problem: ' + err);
  });
  </code></pre>
  
  <p><strong>Error:</strong> <code>Error: ENOENT, mkdir 'dijit/analysis/images'</code></p>
  
  <p>Thanks,</p>