A directory comparison tool (POSIX systems)
Go to file
alessandro ferro 6afd040be6 Merge branch 'main' of https://github.com/xfarrow/dircomp 2023-04-17 09:26:42 +02:00
ccan/json code readability, importing JSON library 2023-04-13 17:58:24 +02:00
.gitignore Get directories' name from argv 2023-04-13 23:48:16 +02:00
LICENSE
README.md Update README.md 2023-04-17 07:24:23 +00:00
build.sh Significantly improved performance. Hash function removed. 2023-04-15 22:19:04 +02:00
dircomp.c Update dircomp.c 2023-04-17 09:26:28 +02:00
dircomp.h Added option -f (fast) 2023-04-16 17:02:23 +02:00

README.md

dircomp

Name

dircomp - A directory comparison tool

Synopsis

dircomp directory1 directory2 [-rvfh]

Description

dircomp is a program for evaluating whether two directories are equivalent.

Two directories are considered equivalent if and only if these conditions apply:

  • 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 if they have the same name, including extension, and same content.
  • 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
  -f             Fast. Halt as soon as the directories are found to be not equal             
  -h             Print this help and quit