Closedown

This commit is contained in:
boccioli_m
2015-06-09 11:08:31 +02:00
parent a3b0fcaa0d
commit fcd3b4f03e

View File

@@ -362,12 +362,14 @@ public class TestingList extends Panel {
Properties prop = new Properties();
String fileName = new java.io.File( "." ).getCanonicalPath()+ "\\home\\script\\tests\\devices\\";
this.jTextField1.setText(fileName + "\n");
Files.walk(Paths.get(fileName)).forEach(filePath -> {
if (Files.isRegularFile(filePath)) {
this.jTextField1.append(fileName);
System.out.println(filePath);
}
});
File folder = new File(fileName);
for (final File fileEntry : folder.listFiles()) {
if (fileEntry.isDirectory()) {
this.jTextField1.append(fileEntry.getPath());
} else {
System.out.println(fileEntry.getName());
}
}
InputStream is = new FileInputStream(fileName);