removeDirAllSync static method

Result<(), IoError> removeDirAllSync(
  1. Path path
)

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((_) => ());
}