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,
}) {
  final nPath = join(root.path, path);
  return switch (type) {
    EntityType.file => io.File(nPath).existsSync(),
    EntityType.dir => io.Directory(nPath).existsSync(),
  };
}