Skip to content

Detect and delete duplicated files

License

Notifications You must be signed in to change notification settings

simonbrandhof/unduplicate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unduplicate

Delete duplicated files in a directory. It's convenient for example when sanitizing an archive of pictures.

The python script makes the job, but its quality is crap: single long function and no unit tests.

Commands:

  • List duplicated files: python3 unduplicate.py /path/to/dir
  • Delete duplicated files: python3 unduplicate.py /path/to/dir -delete. A group of duplicated files is sorted by name. Only the first file is kept.

Multiple directories can be analyzed, for example python3 unduplicate.py /path/to/dir1 /path/to/dir2 /path/to/dir3 -delete.

About

Detect and delete duplicated files

Topics

Resources

License

Stars

Watchers

Forks

Languages