isDirectory static method

bool isDirectory(
  1. String path
)

Checks if the path is a directory.

Implementation

static bool isDirectory(String path) {
  try {
    return Directory(path).existsSync();
  } catch (e) {
    throw DeepLinkException('Failed checking if directory: $path', e);
  }
}