Merge two directories without losing files
Python Shell
Switch branches/tags
Nothing to show
Latest commit 4629abc Jun 22, 2017 @luispedro luispedro BUG Read files in binary mode
Because Python 3

README.rst

Merge

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:

merge.py INPUT_DIR DEST_DIR

Flags

  • remove-only: Do not copy files, only remove duplicates
  • verbose: be verbose
  • ignore-flags: ignore file mode, mtime, &c

AUTHOR: Luis Pedro Coelho <luis@luispedro.org> LICENSE: MIT