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.
Build the Docker image for the project:
docker build -t file-duplicate-finder .Run the Docker container, mounting the directory you want to analyze:
docker run -it -v "path/to/your/directory:/app/directory" file-duplicate-finderReplace path/to/your/directory with the absolute path to the directory on your host machine.
You can now use the dup-finder CLI tool to manage files in the mounted directory.
To find and delete duplicate files in a directory:
dup-finder --find "directory"You can also use the shorthand -f:
dup-finder -f "directory"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"-
Find duplicates in
/app/directory:dup-finder --find /app/directory
-
List all files in
/app/directory:dup-finder --ls /app/directory
- Ensure the directory you want to analyze is mounted to the container using the
-vflag. - Changes made by the tool (e.g., deleting duplicates) will reflect on the host machine.
Happy file managing!