Skip to contents

Get a full list of files below a root directory using the dir function and write it to a given file

Usage

list_files(root, file, use_batch = TRUE)

Arguments

root

path to the directory from which to start "downwards" and recursively for files and folders.

file

path to the result file (text) to which the paths are to be written.

use_batch

if TRUE (default), a batch file is written (by default to list_files.bat in tempdir()) and run to perform the dir command