How can I compare two directories to compare missing files, when the directories don't have the same structure?
- by David Dean
I've been sent a HDD of new and updated files from an organisation that we are working with, but we already have most of the files sitting on our servers, and would like to update our local versions to match theirs.
Normally, this would be a job for something like rsync, but our problem is that the directory structure they provide is very poorly organised and we've had to rearrange their files in the past to work best with our systems.
So, my question is:
How can I find out which files in the set they have provided are new
or different to the versions that we have, when the directory
structures are different?
Once that question is answered, we can update the changed files, and work out where to put the new files on our system, probably somewhat manually.