list_folder_files {verifyr2} | R Documentation |
List files that exist in two folders
Description
list_folder_files
List files that exist in two folders with a specific
name pattern
Usage
list_folder_files(folder1, folder2, pattern = NULL)
Arguments
folder1 |
character, giving the the full file path and name of the folder where first files are stored (required) |
folder2 |
character, giving the the full file path and name of the folder where second new files are stored (required) |
pattern |
character, limit the files to be listed to contain a specific pattern (optional) |
Value
Returns a tibble, selected_files
with 2 columns file1
,
file2
Examples
folder1 <- paste0(fs::path_package("/extdata/base_files/",
package = "verifyr2"))
folder2 <- paste0(fs::path_package("/extdata/compare_files/",
package = "verifyr2"))
verifyr2::list_folder_files(folder1, folder2, "base")
[Package verifyr2 version 1.0.0 Index]