powered by
Add all text files from a directory
vdb_add_dir(db, dir_path, pattern = "\\.txt$", recursive = TRUE)
Vectrix object
Vectrix object or collection name
Directory path
File pattern (default: "*.txt")
Search subdirectories
if (FALSE) { vdb_add_dir(db, "./documents/") }
Run the code above in your browser using DataLab