uploadfs.js
function (callback) {
        if (!imageSizes.length) {
          return callback();
        }

        tempPath = options.tempPath;

        if (!fs.existsSync(options.tempPath)) {
          fs.mkdirSync(options.tempPath);
        }
        return callback(null);
      }
function (callback) {
        if (!imageSizes.length) {
          return callback();
        }

        tempPath = options.tempPath;

        if (!fs.existsSync(options.tempPath)) {
          fs.mkdirSync(options.tempPath);
        }
        return callback(null);
      }
function ( callback ) { if ( ! imageSizes . length ) { return callback ( ) ; } tempPath = options . tempPath ; if ( ! fs . existsSync ( options . tempPath ) ) { fs . mkdirSync ( options . tempPath ) ; } return callback ( null ) ; }
create temp folder if needed
create temp folder if needed