is_dir_empty | R Documentation |
This function checks whether a given directory is empty or not.
is_dir_empty(path)
path |
A character string specifying the path to the directory to check. |
A logical value. Returns TRUE
if the directory is empty,
FALSE
otherwise.
## Not run:
is_dir_empty("path/to/empty/directory") # Returns TRUE
is_dir_empty("path/to/non-empty/directory") # Returns FALSE
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.