Debian Codegraph @

man/is_dir_empty.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/is.R
3 \name{is_dir_empty}
4 \alias{is_dir_empty}
5 \title{Check if a directory is empty}
6 \usage{
7 is_dir_empty(path)
8 }
9 \arguments{
10 \item{path}{A character string specifying the path to the directory to check.}
11 }
12 \value{
13 A logical value. Returns \code{TRUE} if the directory is empty,
14 \code{FALSE} otherwise.
15 }
16 \description{
17 This function checks whether a given directory is empty or not.
18 }
19 \examples{
20 \dontrun{
21 is_dir_empty("path/to/empty/directory") # Returns TRUE
22 is_dir_empty("path/to/non-empty/directory") # Returns FALSE
23 }
24
25 }