Bizarre directory delete behaviour on SSD drive

前端 未结 6 868
遇见更好的自我
遇见更好的自我 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:18

    If that's really the application code, note that you are really trying to delete the directory named "est"!

    Escape your path to be "c:\test" or use the @ operator @"c:\test".

提交回复
热议问题