evp-dirdiff [options] source destination
Where source is a source directory or a file and
destination is a destination directory or a file.
Options are a combination of the following:
| Option | Arguments | Description |
|---|---|---|
| -s, --show | all | same | difference | dstonly | srconly | update | commands | commands_noprefix |
Defines what to show on the output.
Default values is difference. The result of the directory tree comparison is divided into four categories:
|
| -L , --depthlimit | <integer> | Sets a limit on how deep in the directory tree evp-dirdiff should go. The value should be greater or equal to -1. -1 sets the unlimited depth. Default is -1. |
| -f, --removefile | <string> |
Defines what command for removing files to show on the output when --show is set to commands.
Default is rm
|
| -d, --removedir | <string> |
Defines what command for removing directories to show on the output when --show is set to commands.
Default is rmdir
|
| -F, --copyfile | <string> |
Defines what command for copying files to show on the output when --show is set to commands.
Default is cp
|
| -D, --copydir | <string> |
Defines what command for copying directories to show on the output when --show is set to commands.
Default is mkdir
|
| -i, --ignore_case | Ignore file and directory name case | |
| -z, --synchronize | Synchronize the source and destination directories | |
| -p, --printhash | Print hash value for every file | |
| -o, --output | <string> | Specifies output file name. Default is stdout |
| -n, --nofail | Do not fail on errors. The failed files will be ignored. | |
| -e, --enclose | <string> |
Enclose file and directory names in <string> Usually used with " character to enclose the files names containing spaces |
| -u, --fullpath | Show full path. The default is to show relative path | |
| --version | Displays version information and exits | |
| -h, --help | Displays usage information and exits |
The directories are called source and destination because evp-dirdiff lets you synchronize the two directories making SOURCE=DESTINATION
The results of the comparison are shown as steps required to make the destination directory identical to the source one. See --show option for more details.
evp-dirdiff does not synchronize the directories by default. Using a command line switch --synchronize you can tell evp-dirdiff to synchronize the directories. Alternatively you can specify command names that should be used to perform the synchronization and a script will be printed for you. You can run the script later to synchronize the directories.
evp-dirdiff distribution includes Windows and Linux (i386) builds as well as the complete C++ source code that can be used to build evp-dirdiff on other platforms.
The evp-dirdiff can be downloaded at http://sourceforge.net/projects/evp-dirdiff/