A command-line tool for finding and listing duplicate files within a directory.
- Go
-
Clone the repository:
git clone https://github.com/C-m3-Codin/lsdups.git
-
Change into the project directory:
cd lsdups
-
Build the project:
go build
-
Run the tool:
./clean
The tool scans a directory and lists duplicate files within it.
./clean lsdups
# List duplicate files in the current directory
./clean lsdups
# # List duplicate files in a specific directory
# ./clean /path/to/directory
The tool will provide a list of duplicate files found within the specified directory, along with their respective file hashes and the count of duplicates.
For example:
Directory is /path/to/directory
file hash is abcdef1234567890: {Path: [file1.txt file2.txt], Count: 2}
file hash is 0987654321fedcba: {Path: [file3.txt], Count: 1}
- Implement optional recursive search to include subdirectories in the scan.
- Optimize the code for better performance by introducing multiple workers for parallel file processing [done in branch threadIt].
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request. Make sure to follow the project's code of conduct.
This project is licensed under the MIT License.