not able to delete the directory through Java

后端 未结 5 1976
走了就别回头了
走了就别回头了 2021-02-13 07:15

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:59

    Two other possibilities (besides the directory not being empty):

    • The user which runs the java program does not have write/delete permission for the directory
    • The directory is used/locked by a different process (you write that it's not, but how have you confirmed this?)

提交回复
热议问题