clear_dir: given a directory, delete files given the regex pattern...

View source: R/transfer.R

clear_dirR Documentation

given a directory, delete files given the regex pattern excluding files matching to 'avoid' arg

Description

given a directory, delete files given the regex pattern excluding files matching to 'avoid' arg

Usage

clear_dir(dir, pattern = ".csv", recursive = F, avoid = "^_")

Arguments

pattern

a regex string, used to match files to be deleted

avoid

a regular expression string, matched files will not be deleted


fjoe88/d8ahelper documentation built on Feb. 6, 2023, 7:55 a.m.