delete_old_files: Keep only the most recent file in a directory that matches a...

View source: R/delete_old_files.R

delete_old_filesR Documentation

Keep only the most recent file in a directory that matches a pattern

Description

Keep only the most recent file in a directory that matches a pattern

Usage

delete_old_files(dir, file_pattern, return_dir = TRUE)

Arguments

file_pattern

Regular expression to find matching files

return_dir

True/False: Should the function return the working directory

path

Path/directory to be searched for matching files

Value

Defaults to the working directory which helps with piped operations


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