MCPcopy Create free account
hub / github.com/TheCyaniteProject/exit_code_java / run

Method run

addons/navComPack/src/main/java/addon/Plugin.java:177–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176
177 @Override
178 public void run() {
179 String path = console.getNavigator().getCurrentDirectory();
180
181 if (console.getNavigator().checkDirectory(path + "/" + body.trim())) {
182 Node node = console.getNavigator().getDirectory(path + "/" + body.trim());
183 console.getNavigator().sendToOblivion(node);
184 ExitParser.writeDocToZip(node.getOwnerDocument(), console.getNavigator().getSystem());
185 } else {
186 Console.printText(termArea, String.format("rm: \"%s\" does not exist", body));
187 }
188
189 }
190
191}

Callers

nothing calls this directly

Calls 8

writeDocToZipMethod · 0.95
printTextMethod · 0.95
getCurrentDirectoryMethod · 0.80
getNavigatorMethod · 0.80
checkDirectoryMethod · 0.80
getDirectoryMethod · 0.80
sendToOblivionMethod · 0.80
getSystemMethod · 0.80

Tested by

no test coverage detected