title: Should I use promise for mkdir
body: <p>I use the bluebird magic </p>
  
  <pre><code>var fs = Promise.promisifyAll(require('fs'));
  </code></pre>
  
  <p>and use </p>
  
  <pre><code>fs.readdirAsync(dest).then(function (val) {
          return val;
  }).then(function (file) {
  
  ...
  </code></pre>
  
  <p>My question is for the following code (which is working) should I use the same and how 
  I am talking about the <code>mkdir</code> function.</p>
  
  <pre><code>function createDir(folder) {
      return function (req, res, next) {
          if (typeof require.cache.per === 'undefined') {
              require.cache.per = {};
              require.cache.per.mk = false;
          }
          if (!require.cache.per.mk) {
              fs.mkdir(folder, function (e) {
                  if (!!e &amp;&amp; e.code !== 'EEXIST') {
                      console.log('Error to create  folder: ' + err);
                  }
                  require.cache.per.mk = true;
                  next();
              });
          } else {
              next();
          }
      };
  }
  </code></pre>
  
  <p>My Question is should I use promise here or not, <strong>what is recommended</strong> ?
  The code is working as expected...</p>