Skip to content

This project was from John Cricket's Coding challenges. Essentially. it uses fs module to interact with the file system.

Notifications You must be signed in to change notification settings

Murchoid/File-Duplicate-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Duplicate Finder

A CLI tool to help you find and manage duplicate files in a directory. This tool also provides functionality to list all files in a directory and its subdirectories.

How to Use

Step 0: Create the Docker Image

Build the Docker image for the project:

docker build -t file-duplicate-finder .

Step 1: Run the Docker Container

Run the Docker container, mounting the directory you want to analyze:

docker run -it -v "path/to/your/directory:/app/directory" file-duplicate-finder

Replace path/to/your/directory with the absolute path to the directory on your host machine.

Step 2: Use the CLI Tool

You can now use the dup-finder CLI tool to manage files in the mounted directory.


CLI Commands

Find and Delete Duplicates

To find and delete duplicate files in a directory:

dup-finder --find "directory"

You can also use the shorthand -f:

dup-finder -f "directory"

List All Files

To list all files in a directory and its subdirectories:

dup-finder --ls "directory"

You can also use the shorthand -l:

dup-finder -l "directory"

Example Usage

  1. Find duplicates in /app/directory:

    dup-finder --find /app/directory
  2. List all files in /app/directory:

    dup-finder --ls /app/directory

Notes

  • Ensure the directory you want to analyze is mounted to the container using the -v flag.
  • Changes made by the tool (e.g., deleting duplicates) will reflect on the host machine.

Happy file managing!

About

This project was from John Cricket's Coding challenges. Essentially. it uses fs module to interact with the file system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •