A directory differential tool.
Go to file
2019-08-28 15:42:06 -07:00
src Remove old dedupe code 2019-08-28 15:42:06 -07:00
.gitignore Ignore macos .DS_Store file 2018-11-16 11:15:11 -08:00
.travis.yml nix deploy 2018-07-02 11:03:00 -10:00
appveyor.yml Update tag for windows builds 2018-05-15 14:11:43 -10:00
Cargo.toml Bump version 2019-07-16 18:30:22 -07:00
LICENSE Add license 2018-02-21 15:01:31 +01:00
README.md Add reference to ddh-move 2019-08-27 13:12:59 -07:00

Linux Build Status

Build Status

Windows Build Status

Build status

The Directory Differential hTool

DDH traverses input directories and their subdirectories. It also hashes files as needed and reports findings.

The H in "hTool" is silent. The H in its abbreviation, "DDH," is not.

This tool is called DDH for two very good reasons.

  • DDT is a dangerous pesticide
  • I mistyped when I created the project

Install

  • Install Rust
  • cargo install --git https://github.com/darakian/ddh ddh
  • The DDH binary will be installed into $CARGO_HOME/.bin/ddh, which usually is $HOME/.cargo/bin/ddh. This should be in your PATH already if you're using rustup.

Features

DDH supports both a standard output for human comprehension and a parsable json output for custom tools such as ddh-move.

Example

Directory Difference hTool
Jon Moroney jmoroney@hawaii.edu
Compare and contrast directories.
Example invocation: ddh /home/jon/downloads /home/jon/documents -f duplicates
Example pipe: ddh ~/Downloads/ -o no -v all -f json | someJsonParser.bin

USAGE:
    ddh [OPTIONS] <Directories>...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -b, --blocksize <Blocksize>    Sets the display blocksize to Bytes, Kilobytes, Megabytes or Gigabytes. Default is
                                   Kilobytes. [possible values: B, K, M, G]
    -f, --format <Format>          Sets output format. [possible values: standard, json, off]
    -o, --output <Output>          Sets file to save all output. Use 'no' for no file output.
    -v, --verbosity <Verbosity>    Sets verbosity for printed output. [possible values: quiet, duplicates, all]

ARGS:
    <Directories>...    Directories to parse

How Does DDH Work?

DDH works by hashing files to determine their uniqueness and, as such, depends heavily on disk speeds for performance.

ddh