Browse Source

changes

master
michael 2 years ago
parent
commit
9e393f0603
2 changed files with 12 additions and 3 deletions
  1. BIN
      bin/listarDirectorioTree/tree.class
  2. +12
    -3
      src/listarDirectorioTree/tree.java

BIN
bin/listarDirectorioTree/tree.class View File


+ 12
- 3
src/listarDirectorioTree/tree.java View File

@ -6,11 +6,20 @@ import java.util.Iterator;
public class tree {
public static void main(String[] args) {
String path;
File f;
String path = "/home/michael/Downloads";
File f = new File(path);
if(args.length>0) {
path = args[0];
f = new File(path);
printDirectoryTree(f);
}else {
f= new File(System.getProperty("user.dir"));
}
System.out.println(printDirectoryTree(f));
// String path = "/home/michael/Downloads";
// System.out.println(printDirectoryTree(f));
}


Loading…
Cancel
Save