▲ 1 points
back
1 comments
I never liked how `mv` would make new subfolders [when the destination has a subfolder with the same name](https://github.com/chapmanjacobd/journal/blob/main/programmi...) so I made my own utility.
`library merge-folders` acts similar to `rclone move` but `rclone` always copies then deletes instead of using the rename() syscall. My tool only renames and it should preserve inodes.
library merge-folders [--replace] [--skip] [--simulate] SOURCES ... DESTINATION
Merge multiple folders with the same file tree into a single folder.
https://github.com/chapmanjacobd/journal/blob/main/programming/linux/misconceptions.md#mv-src-vs-mv-src
Trumps are files that are new or replaced files from an earlier source which now conflict with this later source.
The count of conflicts also includes trumps.