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