Coder Social home page Coder Social logo

dupfinder's Introduction

Duplicate files finder

Fast and simple command line tool, with caching capabilities, to find and clean duplicated files.

Usage

  1. Search for duplicated files

Finding duplicated files at a path. Results will be saved on duplicates.txt:

dupfinder scan /path/to/scan

Finding duplicated files at multiple paths. Results will be saved on duplicates.txt::

dupfinder scan /path/to/scan /another/path

First execution might take quite some time given potential duplicate files need to be loaded for comparison. From second execution on, most file signatures will already be cached.

The scan shows an execution log. Output file will have the list of duplicates sorted by the group size.

  1. Edit the output fiile and add a d to the braket of the files you want to delete

Open the outpute text file and you will see the list of duplicated files such as:

Duplicate 0 Size 732631040 Files 2 MD5 8cb9641aaaaaa0dbec61e0299116911a8275018afa35d92e6f213dc40464375b
[]    '/files/a/filea.avi'
[]    '/files/b/filea.avi'
[]    '/files/a/filec.avi'

Add a [d] to the files you want to delete, for example:

Duplicate 0 Size 732631040 Files 2 MD5 8cb9641aaaaaa0dbec61e0299116911a8275018afa35d92e6f213dc40464375b
[]    '/files/a/filea.avi'
[d]    '/files/b/filea.avi'
[d]    '/files/a/filec.avi'

Run the clean command on the file:

dupfinder clean duplicates.txt

Managing the cache

Cache summary:

dupfinder cache

Listing cached items:

dupfinder cache --verbose

Deleting selected cached items (will delete every item started with the prefixes):

dupfinder cache --clean /my/path

dupfinder's People

Contributors

eargollo avatar

Watchers

 avatar

dupfinder's Issues

Save results to a file

  • Add option to set file name
  • Always save to file
  • Default to duplicates.txt
  • If default exists add 1, 2, 3, ... to file name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.