|
@ -1,8 +1,22 @@ |
|
|
package antoniofrische.com; |
|
|
package antoniofrische.com; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
|
public class ActListar { |
|
|
public class ActListar { |
|
|
public static void main(String args[]) { |
|
|
public static void main(String args[]) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void ListDirectorio(File path, String location) { |
|
|
|
|
|
File[] archList = path.listFiles(); |
|
|
|
|
|
for(int i = 0; i < archList.length; i++) { |
|
|
|
|
|
if(archList[i].isDirectory()) { |
|
|
|
|
|
System.out.println(location + archList[i].getName()); |
|
|
|
|
|
ListDirectorio(archList[i]," "); |
|
|
|
|
|
}else { |
|
|
|
|
|
System.out.println(location + archList[i].getName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |