Create the directory if it doesn't exist. And make sure it being cleaned
xiaopei.clean.file(idx_dir)Invisibly TRUE.
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.