delete method
- String path,
- {bool recursive = false,
- EntityType type = EntityType.file}
override
Deletes this Entity
Implementation
@override
void delete(
String path, {
bool recursive = false,
EntityType type = EntityType.file,
}) {
final nPath = join(root.path, path);
return switch (type) {
EntityType.file => io.File(nPath).deleteSync(recursive: recursive),
EntityType.dir => io.Directory(nPath).deleteSync(recursive: recursive),
};
}