Skip to content

Latest commit

 

History

History
82 lines (50 loc) · 1.71 KB

Readme.md

File metadata and controls

82 lines (50 loc) · 1.71 KB

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.