file_purge: Removes all but the most recent file with a given pattern,...

Description Usage Arguments Value

Description

Removes all but the most recent file with a given pattern, i.e. a directory purge a la VMS. Beware of using this indiscriminately.

Usage

1
file_purge(path, pattern = "*")

Arguments

path

The path to the folder containing the files

pattern

A regular expression for the files to remove

Value

The return value from the file.remove call.


alphajuliet/ajworkr documentation built on May 11, 2019, 11:21 p.m.