Merge two directories without losing any content.
It often happens that I have multiple directories that I think are copies of each other, but don't simply want to erase one of them without checking. This small utility performs the necessary checks before removing the files.
Usage:
mergedirs.py INPUT_DIR DEST_DIR
remove-only
: Do not copy files, only remove duplicatesverbose
: be verboseignore-flags
: ignore file mode, mtime, &c
Use
mergedirs --help
for a full list
AUTHOR: Luis Pedro Coelho luis@luispedro.org
LICENSE: MIT