MCPcopy Create free account
hub / github.com/diffplug/goomph / rm

Method rm

src/main/java/com/diffplug/gradle/CmdLine.java:79–85  ·  view source on GitHub ↗

Removes the given file or directory.

(File fileOrDir)

Source from the content-addressed store, hash-verified

77
78 /** Removes the given file or directory. */
79 public void rm(File fileOrDir) {
80 run(() -> {
81 if (fileOrDir.exists()) {
82 FileMisc.forceDelete(fileOrDir);
83 }
84 });
85 }
86
87 /** Removes the given file or directory. */
88 public void copy(File src, File dst) {

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
forceDeleteMethod · 0.95

Tested by

no test coverage detected