whole_func_string: function getDirectoriesSync(dir) {
    return fs.readdirSync(dir)
        .filter(function(item){
          return fs.statSync(path.join(dir, item)).isDirectory();
        });
  }
func_code_string: function getDirectoriesSync(dir) {
    return fs.readdirSync(dir)
        .filter(function(item){
          return fs.statSync(path.join(dir, item)).isDirectory();
        });
  }
func_documentation_string: Get list of directories `dir` from synchronously
  
  @param {String} dir
  @param {Function} cb