Returns whether dir exists on the file system.
dir
This returns true for a symlink only if that symlink is unbroken and points to a directory.
true
bool dirExists(String dir) => Directory(dir).existsSync();