代码改变世界

scala 删除目录

2021-08-25 16:19  ZealouSnesS  阅读(133)  评论(0编辑  收藏  举报

file io - Delete directories recursively in Java - Stack Overflow

 

You should check out Apache's commons-io. It has a FileUtils class that will do what you want.

FileUtils.deleteDirectory(new File("directory"));