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

Method copy

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

Removes the given file or directory.

(File src, File dst)

Source from the content-addressed store, hash-verified

86
87 /** Removes the given file or directory. */
88 public void copy(File src, File dst) {
89 run(() -> {
90 if (!src.exists()) {
91 throw new IllegalArgumentException("copy failed: " + src.getAbsolutePath() + " does not exist.");
92 }
93
94 if (src.isDirectory()) {
95 FileUtils.copyDirectory(src, dst);
96 } else {
97 FileUtils.copyFile(src, dst);
98 }
99 });
100 }
101
102 /** Removes the given file or directory. */
103 public void mv(File src, File dst) {

Callers 1

copyIntoFolderMethod · 0.45

Calls 2

runMethod · 0.95
copyFileMethod · 0.80

Tested by 1

copyIntoFolderMethod · 0.36