removeFileSync static method

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

Removes a file.

Implementation

static Result<(), IoError> removeFileSync(Path path) {
  return Fs.ioGuardSync(
          () => File(path.asString()).deleteSync(recursive: false))
      .map((_) => ());
}