MCPcopy Create free account
hub / github.com/ReZeroS/git / addDirectory

Method addDirectory

src/main/java/club/qqtim/command/Add.java:70–78  ·  view source on GitHub ↗
(JsonObject asJsonObject, String file)

Source from the content-addressed store, hash-verified

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

Callers 1

addFilesMethod · 0.95

Calls 4

walkMethod · 0.95
addFileMethod · 0.95
errorMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected