whole_func_string: function createDir (dir) {
    if (fs.existsSync(dir)) {
      return false
    }
  
    mkdirp.sync(dir)
    return true
  }
func_code_string: function createDir (dir) {
    if (fs.existsSync(dir)) {
      return false
    }
  
    mkdirp.sync(dir)
    return true
  }
func_documentation_string: ------------------------------------------------------------- Module. ------------------------------------------------------------- Create a directory if it doesn't exist yet.