create method

  1. @override
void create(
  1. String path,
  2. {bool recursive = false,
  3. EntityType type = EntityType.file}
)
override

Implementation

@override
void create(
  String path, {
  bool recursive = false,
  EntityType type = EntityType.file,
}) {
  final nPath = join(root.path, path);
  return switch (type) {
    EntityType.file => io.File(nPath).createSync(recursive: recursive),
    EntityType.dir => io.Directory(nPath).createSync(recursive: recursive),
  };
}