Pages - Menu

FileInfo.MoveTo() does not overwrite. Surprising or Interesting?

FileInfo.CopyTo() has an overload method that allow you to overwrite if destination file already exists. It makes sense as you sometimes want to overwrite the file.

Similarly you would expect that is made available to FileInfo.MoveTo() but it is not, no big deal as we understand just because it is Microsoft .Net Framework, doesn't mean everything is available to you.

What I found funny though is the following comments by Microsoft.


Ref: https://connect.microsoft.com/VisualStudio/feedback/details/321351/fileinfo-moveto-show-allow-file-overwrite

Did they really sound surprised by such a feature?

I wouldn't be surprised if I am asked to do overwrite in Windows Explorer.


Solutions

Without using much brain power, this is natural to me.


It was actually interesting to see an interesting comments describing this feature as interesting.


No comments:

Post a Comment