rsync_dirs: Sync two directories using the system 'rsync'

View source: R/file.R

rsync_dirsR Documentation

Sync two directories using the system rsync

Description

In rsync there is a complete test on the change of a file before copying. Using cp_dir perfoms a simpler test for changes, so it might be faster. I think for most pipeline uses it may be better to use cp_dir since pipelines are a once-and-done task.

Usage

rsync_dirs(src, dst, flags = "-rcv")

Arguments

src

character the fully qualified source directory

dst

character the fully qualified destination directory

flags

charcater flags for rsync, by default '-rvc'

Value

the output of the systems rsync command (0 = good!)

See Also

Other FILE: cp_dir, file_parts, get_temp_dirname, get_temp_filename


BigelowLab/rscripting documentation built on Oct. 24, 2022, 5:31 p.m.