Hey here's something wild, it's a tool i made for "syncing" a collection of directories into an "output" Build directory. I have been using it to basically test my setups "from scratch" if that makes sense. Though uh, it... only works on Windows, which is 100% my bad. Run it from the command line or a batch file like so
Code:
python3 copybuild.py "DstDir" "SrcDir1" "SrcDir2" ...
the ... can be any number of additional arguments. I'm... not sure how necessary the "s are if the paths dont have spaces, but the idea behind its functionality is this: You give it an arbitrary number of Src Directory Paths. It builds an imaginary directory as if you had copied the contents of SrcDir1 to a fresh folder, then you copied SrcDir2 over and said "yes" to "overwrite existing files", and then SrcDir3, and so on. Then it compares the contents of DstDir, the Destination Directory, to this virtual directory tree built by a sequence of imaginary copy commands, and prunes through it for any files or empty directories already there that aren't in the virtual directory structure, and for the directories/files that are there, will rename them to match Capitalization. Finally, it copies over any files/dirs that are New (were not previously in DstDir) or Modified (difference in modified date by at least 2 seconds, which is about as sensitive of time differences a FAT32 can store apparently, or ANY difference in filesize comparison). In this sense it "builds" the directory but minimizes the amount of actual copying done. TBH if you have any suggestions on improving it, i know this isn't the thread so just DM me. Otherwise i'm just dropping it off in case anyone here wants to use it.