removeDirAllSync static method
Removes a directory at this path, after removing all its contents. Use carefully!
Implementation
static Result<(), IoError> removeDirAllSync(Path path) {
return Fs.ioGuardSync(
() => Directory(path.asString()).deleteSync(recursive: true))
.map((_) => ());
}