This is a Python program that recursively compares filenames in a source directory against a reference directory. If any files are missing in the reference directory, it copies those files from the source directory to a third directory while retaining the folder structure of the source. It was written by ChatGPT. It works better than rsync in this case because rsync won't allow you to use a reference directory and only take into account filenames instead of timestamps and sizes.
Go to file
Tane faada4ecc3 Added comment and changed directory names to be more descriptive 2024-04-04 13:28:11 +02:00
LICENSE Initial commit 2024-04-04 13:02:00 +02:00
README.md Initial commit 2024-04-04 13:02:00 +02:00
compare_and_copy.ps Added comment and changed directory names to be more descriptive 2024-04-04 13:28:11 +02:00

README.md

copy_and_compare

This is a Python program that recursively compares filenames in a source directory against a reference directory. If any files are missing in the reference directory, it copies those files from the source directory to a third directory while retaining the folder structure of the source. It was written by ChatGPT.

It works better than rsync in this case because rsync won't allow you to use a reference directory and only take into account filenames instead of timestamps and sizes.