File: del_empty_dir.Rd

package info (click to toggle)
r-cran-xfun 0.37%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 792 kB
  • sloc: ansic: 242; sh: 22; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paths.R
\name{del_empty_dir}
\alias{del_empty_dir}
\title{Delete an empty directory}
\usage{
del_empty_dir(dir)
}
\arguments{
\item{dir}{Path to a directory. If \code{NULL} or the directory does not
exist, no action will be performed.}
}
\description{
Use \code{list.file()} to check if there are any files or subdirectories
under a directory. If not, delete this empty directory.
}