Description Usage Arguments Examples
By default the copying is only done if the new file is newer than an already existing file. The main goal of this function is to have one wrapper script which calls to this function which copy only files that have recently changed. This avoids lots of uneeded diffs in version control.
1 | file_cp_ts(file_in, dir_out)
|
file_in |
The file to be moved |
dir_out |
The directory to be moved to |
1 2 3 4 5 6 | library("fs")
file_touch("test.xy")
file_cp_ts("test.xy", "log/")
# now both files are equal, no copying will be done
file_cp_ts("test.xy", "log/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.