directoryExists method

bool directoryExists(
  1. String path
)

Check if a directory exists at the given path

Implementation

bool directoryExists(String path) {
  return Directory(path).existsSync();
}