private static void printLevel(File file, int level) {
// TODO Auto-generated method stub
for(int i=0;i<level;i++){
System.out.println("\t");
}
File[] fis = file.listFiles();
for (File file2 : fis) {
if(file2.isDirectory()){
printLevel1(file2,level+1);
}
}
// if(file.isDirectory()){
// printLevel(file,level+1);
// }
} |
|