This function checks whether a given directory is empty or not.
Arguments
- path
A character string specifying the path to the directory to check.
Value
A logical value. Returns TRUE
if the directory is empty,
FALSE
otherwise.
Examples
if (FALSE) { # \dontrun{
is_dir_empty("path/to/empty/directory") # Returns TRUE
is_dir_empty("path/to/non-empty/directory") # Returns FALSE
} # }