util_clean_dir: Clean Contents of a Directory

Description Usage Arguments Author(s) Examples

View source: R/util_clean_dir.R

Description

Clean Contents of a Directory

Usage

1
util_clean_dir(dir, create_dir = TRUE, recursive = TRUE, force = TRUE)

Arguments

dir

Character string. Directory.

create_dir

Logical. If TRUE, creates an empty dir. If FALSE, dir and all its contents are deleted.

recursive

logical. Should directories be deleted recursively?

force

logical. Should permissions be changed (if possible) to allow the file or directory to be removed?

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

1
2
3
4
## Not run: 
util_clean_dir(dir = MY_DIRECTORY)

## End(Not run)

jeksterslabds/jeksterslabRutils documentation built on Jan. 18, 2021, 11:41 p.m.