removeDirSync static method

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

Removes an empty directory.

Implementation

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