Does the IO.File.Copy method preserve file attributes? Especially, if I have a write-protected file, will the copy be write-protected to?
Does the IO.File.Copy method preserve file attributes? Especially, if I have a write-protected file,
Share
The following code proves that file attributes are copied.
And having just used Reflector I see that IO.File.Copy uses kernel32.dll’s CopyFile function which has documentation of what is copied and what is not: http://msdn.microsoft.com/en-us/library/aa363851(VS.85).aspx