|
|
@ -3,7 +3,7 @@ package Package; |
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
public class MiTree { |
|
|
|
|
|
|
|
|
|
|
|
public static void main(String args[]) { |
|
|
|
|
|
|
|
File file = new File("D:\\DAM 2\\Programacion Multimedia\\Pdf's"); |
|
|
@ -13,16 +13,16 @@ public class MiTree { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private static void treeRecursividad(File file) { |
|
|
|
private static void treeRecursividad(File file) { |
|
|
|
if(!file.exists()) |
|
|
|
return; |
|
|
|
|
|
|
|
for(File f : file.listFiles()) { |
|
|
|
System.out.println(f.getName()); |
|
|
|
if(f.isDirectory()) |
|
|
|
if(f.isDirectory()) { |
|
|
|
treeRecursividad(f); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|