not able to delete the directory through Java

后端 未结 5 1648
执念已碎
执念已碎 2021-02-13 06:59

In my application I have written the code to delete the directory from drive but when I inspect the delete function of File it doesn\'t delete the file. I have written some thin

5条回答
  •  耶瑟儿~
    2021-02-13 07:45

    Looking at the docs:

    If this pathname denotes a directory, then the directory must be empty in order to be deleted.

    Did you make sure that the directory is empty (no hidden files either) ?

提交回复
热议问题