Reputation: 1720
I'm writing some sort of backup tool that has to copy all the files in a directory. Now I'm using C#'s File.Copy(String, String, Boolean)
method. But another application (which I can't change) simultaneously writes to the files in that directory.
So now I wonder if it is possible that a file gets changed halfway the copying process creating a corrupt backup file?
Thanks
Upvotes: 1
Views: 659
Reputation: 4665
No, it is not. Underlying file system will make sure this is not happening.
Upvotes: 3