Description Usage Arguments Value
Removes all but the most recent file with a given pattern, i.e. a directory purge a la VMS. Beware of using this indiscriminately.
1 | file_purge(path, pattern = "*")
|
path |
The path to the folder containing the files |
pattern |
A regular expression for the files to remove |
The return value from the file.remove
call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.