pull_files_by_date: Sort selected files in a directory based on their date...

View source: R/pull_files_by_date.R

pull_files_by_dateR Documentation

Sort selected files in a directory based on their date attribute

Description

Sort selected files in a directory based on their date attribute

Usage

pull_files_by_date(
  folder_path = getwd(),
  file_pattern = NULL,
  n_return = NULL,
  date_sort = "mtime",
  skip_temp = TRUE,
  paths_only = TRUE
)

Arguments

folder_path

A list or character vector of directories to search

file_pattern

Regular expression selecting file list to be sorted

n_return

How many files should be returned?

date_sort

Which file date property should be used for sorting?

skip_temp

Should temporary files be skipped? (Almost always "yes")

paths_only

Return the full, sorted file paths?

Value

A list of fully expanded file paths


cmstillwell/UWparserrr documentation built on Nov. 11, 2024, 10:38 p.m.