Closedown
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user