MCPcopy Index your code
hub / github.com/dianping/cat / copyFile

Method copyFile

lib/java/src/main/java/com/dianping/cat/util/Files.java:98–103  ·  view source on GitHub ↗
(File from, File to)

Source from the content-addressed store, hash-verified

96 }
97
98 public void copyFile(File from, File to) throws IOException {
99 createDir(to.getParentFile());
100
101 IO.INSTANCE.copy(new FileInputStream(from), new FileOutputStream(to), AutoClose.INPUT_OUTPUT);
102 to.setLastModified(from.lastModified());
103 }
104
105 public void createDir(File dir) {
106 if (!dir.exists()) {

Callers 1

copyDirMethod · 0.95

Calls 2

createDirMethod · 0.95
copyMethod · 0.65

Tested by

no test coverage detected