dirExists function

bool dirExists(
  1. String dir
)

Returns whether dir exists on the file system.

This returns true for a symlink only if that symlink is unbroken and points to a directory.

Implementation

bool dirExists(String dir) => Directory(dir).existsSync();