exists method

  1. @override
bool exists(
  1. String path
)
override

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

Implementation

@override
bool exists(String path) {
  try {
    final fullPath = resolvePath(path);
    return File(fullPath).existsSync() || Directory(fullPath).existsSync();
  } catch (e) {
    return false;
  }
}