whole_func_string: function getDirectories(dir, cb) {
    fs.readdir(dir, function(err, objects){
      if (err) { return cb && cb(err); }
  
      var dirs = objects.filter(function(item){
        return fs.statSync(path.join(dir, item)).isDirectory();
      });
  
      cb && cb(null, dirs)
    })
  }
func_code_string: function getDirectories(dir, cb) {
    fs.readdir(dir, function(err, objects){
      if (err) { return cb && cb(err); }
  
      var dirs = objects.filter(function(item){
        return fs.statSync(path.join(dir, item)).isDirectory();
      });
  
      cb && cb(null, dirs)
    })
  }
func_documentation_string: Get list of directories `dir` from asynchronously
  
  @param {String} dir
  @param {Function} cb