list_files: Get File Paths Recursively (Windows only!)

View source: R/list_files.R

list_filesR Documentation

Get File Paths Recursively (Windows only!)

Description

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


KWB-R/kwb.fakin documentation built on June 14, 2022, 2 p.m.