如何从内部存储中删除文件夹(包含一些文件夹和文件)?文件夹在树下有一些。
folder
|_________ C2 (folder)
|________1 (folder)
|________1.gif
|________2.gif
|________3.gif
|________4.gif
|________2 (folder)
|________1.gif
|________2.gif
|________3.gif
|________4.gif
|________3 (folder)
|________1.gif
|________2.gif
|________3.gif
|________4.gif
|________4 (folder)
|________1.gif
|________2.gif
|________3.gif
|________4.gif
|________5 (folder)
|________1.gif
|________2.gif
|________3.gif
|________4.gif
|_________ C2.xml (file)
我想删除文件夹并包含所有文件
fil.delete();
System.out.println("boolean =>" + fil.delete());
但上面的代码显示错误。请帮忙。