create method
- String path,
- {bool recursive = false,
- 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),
};
}