del_empty_dir: Delete an empty directory

View source: R/paths.R

del_empty_dirR Documentation

Delete an empty directory

Description

Use list.file() to check if there are any files or subdirectories under a directory. If not, delete this empty directory.

Usage

del_empty_dir(dir)

Arguments

dir

Path to a directory. If NULL or the directory does not exist, no action will be performed.


xfun documentation built on Nov. 17, 2022, 1:06 a.m.