(JsonObject asJsonObject, String file)
| 68 | |
| 69 | |
| 70 | private void addDirectory(JsonObject asJsonObject, String file) { |
| 71 | try { |
| 72 | FileUtil.walk(Paths.get(file), Integer.MAX_VALUE) |
| 73 | .filter(Files::isRegularFile) |
| 74 | .forEach(regularFile -> addFile(asJsonObject, regularFile.toString())); |
| 75 | } catch (IOException e) { |
| 76 | log.error(e.toString()); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | |
| 81 |