From ac4e840ac2b1c21945a42a386299a1d484b1c817 Mon Sep 17 00:00:00 2001 From: vigliom Date: Wed, 28 Sep 2022 20:32:44 +0200 Subject: [PATCH] inicializacion de un repositorio nuevo, Copio y pego lo que he salvado del anterior para conectar bien este --- .classpath | 6 ++++++ .project | 17 +++++++++++++++++ bin/jorpelu/com/Tree.class | Bin 0 -> 1569 bytes bin/module-info.class | Bin 0 -> 143 bytes src/jorpelu/com/Tree.java | 31 +++++++++++++++++++++++++++++++ src/module-info.java | 9 +++++++++ 6 files changed, 63 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 bin/jorpelu/com/Tree.class create mode 100644 bin/module-info.class create mode 100644 src/jorpelu/com/Tree.java create mode 100644 src/module-info.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..fb50116 --- /dev/null +++ b/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..3209d8b --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + tree + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/bin/jorpelu/com/Tree.class b/bin/jorpelu/com/Tree.class new file mode 100644 index 0000000000000000000000000000000000000000..1fd8821637da61dde851522e2b21d62065c25356 GIT binary patch literal 1569 zcmZux-*XdH6#j0q$=#GKZMRKp6(k^HlF~+t7Hwz|sHm8xXiBwI#cg^ii%B+aHVBW- z_{KjVzA@uW#y9mLb!4UwK04#0qyL5f0Au}bvV^wu<(xhD{QAy!&)q-%`)wP*9Lf?A zfx+9JUssi8uIyEF%f3<)hCX%fIJt^b+srMk-&W;7Ab!rRxxu_ZG@V%yFfMr;st-{l zEW{8O7$~?kRcuz*mA~w)SCoKV@XAhQ#qnKjhlfUR%WY`i{=RwEtU7K@U^Kl}c-p@d z_-<`8pII?6Bp{|Fh6SvS-}Q2r-3n3INNNIEECXye5ZFcB``CRiX)qNjcTL#0i11{ZKD9-O7gYO`H@+6ulJt z1uE5t<49`piiI>X#NpKIse-E+6CXjv}R1!^+c7L=IC_`Z*(|v8(m`0;w_0c_p;Nu4-2#4jmbMsrKy%~3Y^+K zMR#ZN2S740CvZ5W8mVS2b<-{1Qod*6yueU+w&D6*H_vxH4d{Y}i?~D{E4(ueiT5^? z&V>6B-aqHG@s5Sd8u}r(u@IKHXW~6>OwPm=sv9N>ROd|;snRB{3Pduz7aJd0C}}?B zrV5Hqm8)ww{w7-uAFzmY`pv-UtZ?s$Y#*mWN^vgCrlRq!k`WOV-FUx+r~r4Y;?Nt2=?m47Dg6N zw=woTj{Jfb9^v?^{n8d*o@nD#8`(CdTKIwfGY@bq^iTYX8AjOWc7=Si&o|%mG577_ z*UUGfQ(iPj1N@mT`?bioclsFc2Dd12>u>L=myjDE` literal 0 HcmV?d00001 diff --git a/bin/module-info.class b/bin/module-info.class new file mode 100644 index 0000000000000000000000000000000000000000..dfa8d0c14103bdd03d1800201f0097e716bbe5b8 GIT binary patch literal 143 zcmX^0Z`VEs1_oOOE_MbcMh5QO{FKt1RNc(Hw0uSeuHgLAqU2P!%$!t41_2}~y{yEt zL`DWSU$AOn26jdUmXe~>RAB~AMg~rhq+U{DacTnt10&FI2w-Ah1~Ql!SQuD=v={>$ NSeTK4qXEo-5CAFt8#@31 literal 0 HcmV?d00001 diff --git a/src/jorpelu/com/Tree.java b/src/jorpelu/com/Tree.java new file mode 100644 index 0000000..1f9553c --- /dev/null +++ b/src/jorpelu/com/Tree.java @@ -0,0 +1,31 @@ +package jorpelu.com; + +import java.io.File; + + +public class Tree { + + public static void main(String[] args) { + String ruta="."; + if (args.length>=1) ruta = args[0]; + File fich = new File(ruta); + if(!fich.exists()) { + System.out.println("No exite "+ruta); + } else { + if(fich.isFile()) { + System.out.println(ruta+" es un fichero"); + } else { + System.out.println(ruta+" es un directorio"); + File[] ficheros=fich.listFiles(); + for (File f:ficheros) { + String textoDescr = f.isDirectory() ? "/" : + f.isFile() ? "_" : "?"; + System.out.println("("+textoDescr+") "+f.getName()); + + } + } + } + + } + +} diff --git a/src/module-info.java b/src/module-info.java new file mode 100644 index 0000000..295c21e --- /dev/null +++ b/src/module-info.java @@ -0,0 +1,9 @@ +/** + * + */ +/** + * @author jorge + * + */ +module tree { +} \ No newline at end of file