View source: R/remove_old_directories.R
remove_old_dirs | R Documentation |
This function removes directories in the specified base directory that are older than a specified maximum age in days. It logs the removed directories and any errors encountered during removal.
remove_old_dirs(
base_dir,
max_age_in_days = 3,
log_file = "remove_old_dirs.log",
verbose = FALSE
)
base_dir |
The base directory to search for old directories. |
max_age_in_days |
The maximum age (in days) for directories to be considered old. |
log_file |
The name of the log file to store information about removed directories and errors. |
verbose |
A logical value indicating whether to print messages to the console. |
The function does not return anything. It logs information about removed directories and errors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.