exists static method

bool exists(
  1. String path
)

Checks if a file or directory exists at the given path.

Implementation

static bool exists(String path) {
  try {
    return File(path).existsSync() || Directory(path).existsSync();
  } catch (e) {
    throw DeepLinkException('Failed checking existence of $path', e);
  }
}