Skip to content

A cli tool written in go to identify duplicate files using md5 hash

License

Notifications You must be signed in to change notification settings

C-m3-Codin/lsdups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duplicate File Finder CLI Tool

A command-line tool for finding and listing duplicate files within a directory.

Installation

Prerequisites

  • Go

Steps

  1. Clone the repository:

    git clone https://github.com/C-m3-Codin/lsdups.git
  2. Change into the project directory:

    cd lsdups
  3. Build the project:

    go build
  4. Run the tool:

    ./clean

Usage

The tool scans a directory and lists duplicate files within it.

./clean lsdups

Example

# List duplicate files in the current directory
./clean lsdups

# # List duplicate files in a specific directory
# ./clean /path/to/directory

Output

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}

Improvements

  1. Implement optional recursive search to include subdirectories in the scan.
  2. Optimize the code for better performance by introducing multiple workers for parallel file processing [done in branch threadIt].

Contributing

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.

License

This project is licensed under the MIT License.

About

A cli tool written in go to identify duplicate files using md5 hash

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages