Project

finddups

0.0
No commit activity in last 3 years
No release in over 3 years
Shows duplicate files within a list of directories and outputs as JSON.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Finddups

Shows duplicate files within a list of directories and outputs as JSON. This is accomplished by generating a hash digest each file and comparing the hashes.

Installation

$ gem install finddups

Usage

finddups 0.2.0
Usage: finddups [dirs] [options]
    -i, --ignore path                ignore paths
    -d, --depth depth                Max depth to search
        --[no-]cache                 Perform caching
        --[no-]cache-to-tmp          Save cache files to /tmp/file_hashes
    -o, --output path                Output file path
        --alg alg                    Hashing algorithm (SHA1, MD5)
        --[no-]ignore-empty          Ignore empty files
    -h, --help                       Show this help
    -v, --version                    Show version

Example:

$ finddups ~/Documents/folder1 ~/Documents/folder2 -i node_modules -i vendor
[
  [
    "/Users/alex/Documents/folder1/file1",
    "/Users/alex/Documents/folder1/file1 (2)",
    "/Users/alex/Documents/folder2/file1"
  ]
]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sleepinginsomniac/finddups.

License

The gem is available as open source under the terms of the MIT License.