MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / copyFile

Method copyFile

src/main/java/com/volmit/adapt/util/IO.java:389–391  ·  view source on GitHub ↗

Copies a file to a new location preserving the file date. This method copies the contents of the specified source file to the specified destination file. The directory holding the destination file is created if it does not exist. If the destination file exists, then this method will overwrite it

(File srcFile, File destFile)

Source from the content-addressed store, hash-verified

387 * @see #copyFileToDirectory
388 */
389 public static void copyFile(File srcFile, File destFile) throws IOException {
390 copyFile(srcFile, destFile, true);
391 }
392
393 /**
394 * Copies a file to a new location.

Callers

nothing calls this directly

Calls 2

doCopyFileMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected