Clean Contents of a Directory
util_clean_dir(dir, create_dir = TRUE, recursive = TRUE, force = TRUE)
dir | Character string. Directory. |
---|---|
create_dir | Logical.
If |
recursive | logical. Should directories be deleted recursively? |
force | logical. Should permissions be changed (if possible) to allow the file or directory to be removed? |
Ivan Jacob Agaloos Pesigan
if (FALSE) { util_clean_dir(dir = MY_DIRECTORY) }