diff --git a/README.md b/README.md new file mode 100644 index 0000000..5b2d7a4 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Title + +Mi Tree Propio + +## Install + +:) + +## Usage + +Ejecuta el programa para que funcione tal y como funciona en un terminal el comando dir + +## Contributing + +--- + +## License + + + + + + + +[https://ada.fp.edu.es](URL "La web de ADA") \ No newline at end of file diff --git a/src/Package/MiTree.java b/src/Package/MiTree.java index c500a9f..58ad751 100644 --- a/src/Package/MiTree.java +++ b/src/Package/MiTree.java @@ -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); - - } + } + } }