I know this has probably been done and discussed umpteen times, but I can’t find the answer I am looking for.
I am trying to create a simple “directory/file copy" console application in C#.
What I need is to copy all folders and files (keeping the original hierarchy) from one drive to another, like from drive C:\Data to drive E:\Data.
However, I only want it copy any new or modified folders and files. If the folder or file on the destination drive is newer than the one on the source drive, then it does not copy.
Here is the code I have tried, but it’s not working. Any suggestions? Thank you.