The Duplicate Files Tool (DFT) is a small and simple tool for finding duplicate files on one’s local machine. It is a command-line application written in Rust. It runs in a terminal window like the Windows Command-Line prompt (DOS). It has no fancy user interface for now.
Contents
Duplicate Files Tool Features
The Duplicate Files tool has the following features.
- One, it lists all duplicate files from one or more directories.
- Second, it lists all common files in one or more directories.
- Third, it checks if files exist or do not exist in another one or more directories.
- Fourth, it lists all common files between the search and source directories.
System Requirements
Windows
DFT runs on Windows 10 64-bit.
Linux
Not yet supported
Getting Started
- Download the zip file. It contains the latest binary.
- Check the integrity of the zip file.
- Unzip files to a separate directory
- Open a command-line terminal window.
- Change the current directory to the new directory.
- Run the duplicate-files-tool.exe file with options and arguments
The latest version is 0.1.0-alpha. Download the file 0.1.0-alpha.zip from this link. The link shows the following files.
Files | Description |
---|---|
dft-0.1.0-alpha.zip | The Duplicate Files Tool binary executable file |
dft-0.1.0-alpha.zip.sig | OpenPGP Signature |
Usage
Open a Windows Command-line window. Then, change the current directory to where you extracted the zip distribution file’s contents.
1 | duplicate-files-tool Find_Duplicates --search-dirs "C:\somewhere1" --output-file "output.txt" |
Please use the -h or --help flag to list all arguments and options.
1 | duplicate-files-tool.exe --help |
DFT displays the following output.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Duplicate Files Tool (DFT) 0.1.0-alpha Karl San Gabriel<karl.sangabriel@gmail.com> | www.turreta.com A CLI program that helps you deal with duplicate files. USAGE: duplicate-files-tool.exe [OPTIONS] <command> --output-file <output-file> --search-dirs <search-dirs>... [--] [output-type] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --output-file <output-file> Output file for list of files --search-dirs <search-dirs>... Directories to search for files --source-dirs <source-dirs>... Directories containing files to search for in <search-dirs> ARGS: <command> [possible values: Find_Duplicates, Find_Exist, Find_Not_Exist, Find_Common] <output-type> [default: default] [possible values: default, json] |
The <command> ARG
There are four possible values for the command argument – Find_Duplicates, Find_Exists, Find_Not_Exist, and Find_Common.
- The Find_Duplicates argument looks for duplicates in directories specified in the --search-dirs option.
- The Find_Exists argument looks for files in directories specified in the --search-dirs option. The files to look for are those found in the directories specified in the --source_dirs.
- The Find_Not_Exists argument looks for files from --search-dirs that should not exist in --source-dirs.
- The Find_Common argument looks for files in both --search-dirs and --source-dirs.
The <output-type> ARG
The output-type argument specifies the output file format to write the list of files the DFT finds. DFT writes out the list of files it finds under their hashes with the default type. For example:
1 2 3 4 5 6 7 8 9 10 11 | 1) 71DA9F99D5189ACBDFAF29C953500DC1BBECBDA93C921276BE7088526477293D ---- c:/users/karldev/IMG_7290.JPG ---- c:/users/karldev/copy/IMG_7290.JPG 2) 9FA6F238EBF502E52CE28EDB467D271234220CAB389A354DA2EDB7B90745DE9F ---- c:/users/karldev/_MG_2960.JPG ---- c:/users/karldev/copy/_MG_2960.JPG 3) FAADCB7F9B3CF871D00DFDC3CC6098A0B1CA2ED93D75E5DC99DF5E7ADBCE26EB ---- c:/users/karldev/IMG_7779.JPG ---- c:/users/karldev/copy/IMG_7779.JPG 4) 119B560C6B9599DE4E08D402105AAAF4E98B96CF9B08EB35A3ABC366D99D56F5 ... |
On the other hand, for the json type, the list of files is written in JSON format.
The –output-type option
The --output-type option specifies the file where the application writes the affected list of files.
The –search-dirs option
The --search-dirs option specifies a set of directories where to look for files. It is required for all the <command> arguments.
The –source-dirs option
The --source-dirs option specifies a set of directories whose files are to searched for in --search-dirs. It is required for the Find_Duplicate argument.