Skip to content

Merge directories, deduplicating files based on their content

License

Notifications You must be signed in to change notification settings

KillianMeersman/contentcopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contentcopy

Contentcopy merges directory contents, deduplicating files based on their content.

If a file with differing contents but the same name is encountered, the copied filename will automatically have a number appended, making it easy to see duplicate filenames.

Usage

python3 contentcopy.py <source> <dest>

e.g.

python3 contentcopy.py old_pictures new_pictures

Will copy all pictures in old_pictures that are not yet in new_pictures to new_pictures. After this you can safely delete old_pictures without worrying about data loss.

Installation

pip install contentcopy

About

Merge directories, deduplicating files based on their content

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages