dircomp/README.md

27 lines
994 B
Markdown
Raw Normal View History

2023-04-14 23:14:19 +02:00
# dircomp
## Name
dircomp - A directory comparison tool
## Synopsis
2023-04-16 17:03:29 +02:00
`dircomp directory1 directory2 [-rvfh]`
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-17 09:06:33 +02:00
Two directories are considered 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-15 22:19:38 +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-14 23:14:19 +02:00
-h Print this help and quit
```