Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielpclark/dfm
Duplicate File Manager
https://github.com/danielpclark/dfm
duplicates file-indexing md5 recursively-search
Last synced: 3 months ago
JSON representation
Duplicate File Manager
- Host: GitHub
- URL: https://github.com/danielpclark/dfm
- Owner: danielpclark
- License: mit
- Created: 2014-06-14T06:09:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T19:58:08.000Z (almost 8 years ago)
- Last Synced: 2024-04-26T02:20:58.014Z (9 months ago)
- Topics: duplicates, file-indexing, md5, recursively-search
- Language: Ruby
- Size: 324 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dfm
===
Duplicate File Managergem install dfm
The purpose of dfm is to locate duplicate files through a recursive search.
You can create an instance of the DFM object with optionally specifying the
directory path and the file extensions.
dfm = DFM.new( path: './', filters: ["jpg","png"] )
If you are using a ruby version before 2 then this would be:
dfm = DFM.new( { :path => './', :filters => ["jpg","png"] } )Or you can use the default behaviour which uses the current directory and searches
all files.dfm = DFM.new
Then you may get a hash of the MD5 hexdigest matches (indicating files with
identical content) by
dfm.hex
And by duplicate file name by
dfm.name
Either of these can be called with false if you want only single instances of files.
dfm.hex( false )
dfm.name( false )
---
Also included is a command line version which outputs nicely formatted JSON in case
you would like to use it with anything else. Type `dfm -h` on the command line to get
a list of available options. Running `dfm` by itself will recursively search the current
folder for all duplicates by both file name and MD5 hexdigest indexes.