read_path_information: Read Files Containing File Path Information from Folder

View source: R/read_path_information.R

read_path_informationR Documentation

Read Files Containing File Path Information from Folder

Description

Read Files Containing File Path Information from Folder

Usage

read_path_information(file_info_dir, pattern = "^path-info", ...)

Arguments

file_info_dir

path to folder in which to look for files matching pattern

pattern

pattern to match against the file names to be read. Default: "^path-info"

...

further arguments passed to read_file_paths

Examples

# Set root directory (here: package installation directory of kwb.fakin)
root_dir <- system.file(package = "kwb.fakin")

# Set output directory
output_dir <- tempdir()

# Write all paths below root_dir into a "path-info"-file
fakin.path.app::get_and_save_file_info(root_dir, output_dir)

# Read the "path-info"-files that are (now) found in output_dir
path_info <- kwb.fakin:::read_path_information(output_dir)


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