Educational project with googletest, doxygen and boost
sudo apt-get update && sudo apt-get install cmake libgtest-dev libboost-all-dev libboost-regex-dev -y
cd DuplicateFileFinder
mkdir build && cd build
cmake ..
# build release
cmake --build . --config Release
# build deb-package
cmake --build . --target package
vcpkg install gtest boost-program-options boost-filesystem boost-uuid boost-crc boost-regex
vcpkg integrate install
cd DuplicateFileFinder
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="path/to/vcpkg/scripts/buildsystems/vcpkg.cmake"
# build release
cmake --build . --config Release
The program searches for duplicate files in specified directories. The program takes the following arguments:
--help
- Produce help message.--directories
or-D
- Directories to scan.--exclude
or-E
- Directories to exclude from finding.--deep-scan
-1
to including subdirectories,0
to search only in the specified directory.--min-file-size
or-F
- Minimum file size in bytes that will included when searching.--file-mask
or-M
- File search mask, supports regular expressions.--block-size
or-S
- Block size for reading files.--hashing-type
or-H
- Hashing type1
to md5,0
to crc32.
Example:
DuplicateFileFinder -D /some/path -E exclude_dir --deep-scan 1 -F 4 -S 6 -H 1