Skip to contents

This function removes directories at the specified paths. It first checks if the directories exist and are empty. Similar to Python's pathlib.Path.rmdir() method.

Usage

Path_rmdir(paths)

Arguments

paths

A character vector of directory paths to remove.

Examples

if (FALSE) {
Path_rmdir("empty_directory")
}