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.


yihui/xfun documentation built on April 29, 2024, 12:16 p.m.