Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am seeing a lot of examples of folder recursively getting copied and an option to check whether to overwrite existing files (y/n).

However, I am unable top locate any such code which checks for existing files and overwrites only if :

a. Delete files + folders if not present in the source directory
b. if the file sizes are not similar
c. if the date of the two files vary

Is this present across the globe anywhere ?

Thanks if you can guide me there.
Posted
Updated 20-Dec-12 11:28am
v2

1 solution

I think you need to write code to do this by hand. You can use Directory.GetFiles to get a list, and the FileInfo class for the info you want to compare.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900