Refreshing Folder Contents
The traditional method of copying content from one folder to another is fairly straightforward:
Here, we look for everything in the source folder and copy it to the destination,
over writing files and copying new files.
One thing this doesn't take into account is, what if you ONLY want to refresh
what's in your destination? Maybe you have extra dlls, test code, alternate IoC
loaded implementations? Then you need something like this:
Here, we make a list of everything currently in the destination folder and then use batching to construct candidate source files on the fly. I have added a continue option to the copy in case a source file does not exist.