This might have been asked but I have a project where I take two file locations
Location A is a subset of Location B so I have to take away locations A files.
There are two ways to accomplish this. One i suse the file iterate and check to see if location "b"'s file exisit in location "a". If it does not exisit then I can copy it to location C from my build process. This i use the Path manupulation to strip the path of and name off so when I copy the file to location C I can maintain the additional paths that are used with the files. I use Robocopy to perform the copy after geting the path taken away.
Example
Location A - \\ServerLoc\Share\MainData\*.* - Recursive from here
Location B - \\ServerLoc\Share\SecondaryData\*.* - Recursive from here
Location C - Localdrive\path\..\file startlocation
So when I end up I get Location "C" with the recursive path to the files that only reside in Location B. This is taking a very long time to run checking over 3000 files.
The other option is copy Location B down to location C then stip away the files that location has in location C. This is very quick but leaves behind a massive amount of empty directories. I can write vbscript code to remove empty directories and empty subdirectories with file count of 0 and subfolder count of 0. But I was looking how do I do this with the internal functions within finalbuilder?