Bizarre directory delete behaviour on SSD drive

前端 未结 6 864
遇见更好的自我
遇见更好的自我 2021-01-01 10:25

Directory c:\\test has 50 or so files in it, no subdirectories.

    If IO.Directory.Exists(\"C:\\test\") Then
        IO.Directory.Delete(\"C:\\test\", True)         


        
6条回答
  •  孤独总比滥情好
    2021-01-01 11:11

    I had the same problem. I ended up deleting only the contents of the directory @"C:\test" and copying the new files to the directory. That was my problem:

    Using Directory.Delete() and Directory.CreateDirectory() to overwrite a folder

提交回复
热议问题