dircomp/README.md

28 lines
1.0 KiB
Markdown
Raw Normal View History

2023-04-14 23:14:19 +02:00
# dircomp
## Name
dircomp - A directory comparison tool
## Synopsis
2023-04-17 16:11:59 +02:00
`dircomp directory1 directory2 [-rvfbh]`
2023-04-14 23:14:19 +02:00
## Description
2023-04-17 09:24:23 +02:00
dircomp is a program for evaluating whether two directories are equivalent.
2023-04-14 23:14:19 +02:00
2023-04-18 10:02:16 +02:00
Two directories are considered to be equivalent if and only if these conditions apply:
2023-04-14 23:14:19 +02:00
* They have the same number of files and folders;
* For each file in a directory, there is the same file in the other. Two files are considered to be the same
2023-04-18 10:02:16 +02:00
if they have the same name, including extension, and same content;
2023-04-14 23:14:19 +02:00
* For each folder in a directory, there is a folder with the same name in the other.
If the recursive option is applied, then another condition must hold true:
* For each folder in a directory, there is an equivalent folder in the other, with the same name.
The options are as follows:
```
-r Recursive
-v Verbose
2023-04-16 17:03:29 +02:00
-f Fast. Halt as soon as the directories are found to be not equal
2023-04-28 22:10:25 +02:00
-d Comparison by digest
2023-04-14 23:14:19 +02:00
-h Print this help and quit
```