- 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().
- recurse
logical, TRUE by default.
If recurse is TRUE: when copying a file from source folder to destination folder, the file will be copied into the corresponding (sub)directory.
If the sub(directory) where the file is located does not exist in destination folder (or you are not sure), set recurse to FALSE,
and the file will be copied at the top level
- 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.
- 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).
- copy_to_right
Logical, default is TRUE.
If TRUE, files that exist only in the left directory are copied to the right directory.
If FALSE, such files are not copied and remain absent from the right directory.
- delete_in_right
Logical, default is TRUE.
If TRUE, files that exist only in the right directory (i.e., not present in the left) are deleted.
If FALSE, these right-only files are preserved.
- exclude_delete
Character vector of file names or dir names to protect from deletion.
These files will be kept in the right directory even if delete = TRUE.
- verbose
logical. If TRUE, display directory tree before and after synchronization. Default is FALSE