exists method

  1. @override
bool exists(
  1. String path,
  2. {EntityType type = EntityType.file}
)
override

Implementation

@override
bool exists(
  String path, {
  EntityType type = EntityType.file,
}) {
  var (fs, rPath) = getFileSystemAndRelativePathByPath(path);
  if (fs != null && rPath != null) {
    return fs.exists(rPath);
  }
  throw "[Disk]: FileSystems don't mount.";
}