Skip to content

Commit

Permalink
copy.date = TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Jul 26, 2024
1 parent c2431d9 commit 2cb8610
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ copy_files <- function(src, dst, overwrite = FALSE,

# mrc-5557: We intentionally don't use fs::file_copy, as it does not work
# reliably on mounted Samba file systems.
ok <- file.copy(src, dst, overwrite = overwrite, copy.mode = copy_mode)
ok <- file.copy(src, dst, overwrite = overwrite,
copy.mode = copy_mode,
copy.date = TRUE)
if (any(!ok)) {
cli::cli_abort("Could not copy file{?s} {.file {src[!ok]}}")
}
Expand Down

0 comments on commit 2cb8610

Please sign in to comment.