System.IO.DirectoryNotFoundException after deleting an empty folder and recreating it

后端 未结 7 2215
我在风中等你
我在风中等你 2021-02-13 04:37

I want to copy a folder, and i want to delete destination folder first. So I am deleting destination folder then recreate it and then copy files. The problem is that i get the <

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 05:04

    Sorry for answering and not commenting but my reputation isn't high enought yet. In the MSDN is written, that the path has to be "well-formed" http://msdn.microsoft.com/en-gb/library/system.io.fileinfo%28v=VS.90%29.aspx

    Maybe trying it out, by putting file in the working directory? So no path is needed and you can see if the problem is in the path or in the file...

提交回复
热议问题