Check for any new/updated files on from_dir and copy them to to_dir. Check for any extra files in to_dir and, optionally, delete them.

mirror_directory(from_dir, to_dir, delete = FALSE, ...)

Arguments

from_dir

Path to directory to mirror.

to_dir

Path to directory you wish to mirror from_dir.

delete

Delete extra files in to_dir. USE WITH CAUTION.

...

Arguments to dir_ls.

Value

to_dir will mirror from_dir