delete_old_output: Delete old output in a folder

Description Usage Arguments Value Examples

Description

All file names matching 'terms' will be deleted

Usage

1

Arguments

folder

Path to folder

terms

A regular expression: search terms to find files to delete.

Value

The deleted paths (invisibly).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
make_dir("test")
fs::file_create("test/a")
fs::file_create("test/b")
fs::file_create("test/1")
list.files("test")
delete_old_output("test", "c")
list.files("test")
delete_old_output("test", "a|b")
list.files("test")
fs::file_delete("test")

## End(Not run)

joelnitta/baitfindR documentation built on May 7, 2020, 6:21 p.m.