开发者

Deleting locked files with Java?

开发者 https://www.devze.com 2023-01-01 03:19 出处:网络
We have to delete some directories and their contents using Java running on Windows. I was worried about running into the directory files being locked.

We have to delete some directories and their contents using Java running on Windows.

I was worried about running into the directory files being locked.

We could just invoke Unlocker to do the delete. Or is there a more Java centric way to handle this 开发者_如何学Gosituation?


Java has a very simplistic access to the file system. You can't do this without using some native libraries.

0

精彩评论

暂无评论...
验证码 换一张
取 消