From 0c66c871934a20da89555fa92763d64f2f56ba06 Mon Sep 17 00:00:00 2001 From: Ivan Morell Date: Tue, 27 Sep 2022 16:20:36 +0200 Subject: [PATCH] Readme --- README.md | 25 +++++++++++++++++++++++++ src/Package/MiTree.java | 10 +++++----- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 README.md 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); - - } + } + } }