public static boolean qf(File f,boolean a){
boolean b=false;
if(a==true){
File[] fl=f.listfile();
for(File ffl:fl){
if(ffl.isDirect){
b=ffl.getTotalspace>0;
if(b==true){ System.out.println("This‘s not a Null Direct: "+ffl);
qf(ffl,b); }
}
else System.out.println("This‘s a Null Direct: "+ffl);
} }
else System.out.println("This is a file: "+fl);
}
原文地址:https://www.cnblogs.com/WE-ON-LINE/p/12001019.html
时间: 2024-11-14 13:23:21