https://github.com/luispedro/mergedirs
Merge two directories without losing files
https://github.com/luispedro/mergedirs
Last synced: 9 months ago
JSON representation
Merge two directories without losing files
- Host: GitHub
- URL: https://github.com/luispedro/mergedirs
- Owner: luispedro
- Created: 2010-07-12T11:38:49.000Z (almost 16 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T07:18:29.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T09:43:56.212Z (over 1 year ago)
- Language: Python
- Homepage: http://luispedro.org/software/merge
- Size: 49.8 KB
- Stars: 18
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
Awesome Lists containing this project
README
# Mergedirs
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:
```bash
mergedirs.py INPUT_DIR DEST_DIR
```
## Main Flags
- `remove-only`: Do not copy files, only remove duplicates
- `verbose`: be verbose
- `ignore-flags`: ignore file mode, mtime, &c
Use
```bash
mergedirs --help
```
for a full list
_AUTHOR_: Luis Pedro Coelho [luis@luispedro.org](mailto:luis@luispedro.org)
_LICENSE_: MIT