clean_dir | R Documentation |
Any files or directories in dir_to_clean
are moved to the new directory
dir_to_clean/old/moved_%Y%m%d_%H%M%S
UNLESS THERE ARE MORE THAN max_files
IN WHICH CASE ALL ARE DELETED
clean_dir(dir_to_clean, skip = "old", max_files = 10000)
dir_to_clean |
Path to directory to 'clean' |
skip |
Character. Any strings that identify files to skip (identified
via |
max_files |
Numeric. If there are more than |
Returns NULL
. Any files in dir_to_clean
are moved (or deleted).
Log written to dirname(dir_to_clean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.