Create the directory if it doesn't exist. And make sure it being cleaned

xiaopei.clean.file(idx_dir)

Arguments

idx_dir

Character. Directory to clean.

Value

Invisibly TRUE.

Examples

xiaopei.clean.file("IndexedData")
#> [clean.file] Directory 'IndexedData' does not exist — creating it.
xiaopei.clean.file("Output")
#> [clean.file] Directory 'Output' does not exist — creating it.