merging directories with the magic of python
We finally got the last projects out of that monstrosity ‘Final Cut Server’, but one project at the end was a nightmare to export, and we weren’t sure which files from the end actually were in a different version of the project that we already had.
We essentially needed to merge two different versions of projects directories, making sure not to lose any files, and we didn’t want to lose the organization of the files.
Here’s a quick python script I wipped up to make it quicker.
With the 4000 odd files in the project, it took under a second to run, and it turned out we only had about 20 files which hadn’t already been merged. Much simpler to sort out.
The script took about 10 minutes to write and test. This is why you should learn to program. Hacking stuff like this up is easy, and saves so much time.
(Yes, you probably could do this with a couple of lines of perl or BASH, but what the heck.)