copy_updated_files: copy_updated_files

View source: R/copy_updated_files.R

copy_updated_filesR Documentation

copy_updated_files

Description

Copy files to destination only if the file is missing or out of date at the destination. Mainly a helper for stage_assets(). Not well-designed for general use.

Usage

copy_updated_files(paths, dest_folder, clear = FALSE, verbose = TRUE, WD = "?")

Arguments

paths

vector of file paths you want to check and/or copy

dest_folder

directory where you want files to be transferred

clear

do you want to delete all files in the destination folder before copying? default=FALSE

verbose

print summary table? default=T

WD

Working directory. Needed to pass on to inSync.. :/ might want to refactor

Value

tibble of path1 files and statuses (whether they were updated, added, or are up-to-date)


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.