'File.Copy' does not overwrite a file

后端 未结 7 1092
暗喜
暗喜 2020-11-30 11:08

Using the following code, I am trying to overwrite a file if it exists. Currenly it throws IOException. How can I fix this problem?

File.Copy(filePath, newPa         


        
相关标签:
7条回答
  • 2020-11-30 11:38
    File.Copy(filePath, newPath, bool overwrite)
    

    does it.

    0 讨论(0)
提交回复
热议问题