- left_path
Path to the left/first directory.
- right_path
Path to the right/second directory.
- sync_status
Object of class "syncdr_status", output of compare_directories().
- by_date
Logical. If TRUE, synchronize based on file modification dates (default is TRUE).
- by_content
Logical. If TRUE, synchronize based on file contents (default is FALSE).
- recurse
Logical. If TRUE (default), files are copied to corresponding subdirectories
in the destination folder. If FALSE, files are copied to the top level of the destination folder
without creating subdirectories if they do not exist.
- force
Logical. If TRUE (by default), directly perform synchronization of the directories.
If FALSE, Displays a preview of actions and prompts the user for confirmation before proceeding. Synchronization is aborted if the user does not agree.
- delete_in_right
Logical. If TRUE (default), files that exist only in the
right directory (i.e., absent from the left directory) are deleted during
synchronization. If FALSE, no files are removed from the right directory,
even if they are exclusive to it.
- backup
Logical. If TRUE, creates a backup of the right directory before synchronization. The backup is stored in the location specified by backup_dir.
- backup_dir
Path to the directory where the backup of the original right directory will be stored. If not specified, the backup is stored in temporary directory (tempdir).
- verbose
logical. If TRUE, display directory tree before and after synchronization. Default is FALSE