Learn R Programming

shinydrive (version 0.1.5)

delete_old_config: Delete config files older than a specific number of days

Description

Delete config files older than a specific number of days

Usage

delete_old_config(
  base_dir,
  days = 30,
  config_file = "files_desc.yaml",
  confirm = TRUE,
  dry_run = FALSE,
  verbose = TRUE
)

Value

delete old config files from folder

Arguments

base_dir

base folder

days

number of days to check the age of files we want to delete

config_file

name of YAML files

confirm

With or without confirmation before deleting

dry_run

Simulation

verbose

Display messages

Examples

Run this code
delete_old_config("~/shinydrive/tests", days = 60, config_file = "files_desc.yaml")

Run the code above in your browser using DataLab