MCPcopy Create free account
hub / github.com/BaseXdb/basex / copyTo

Method copyTo

basex-core/src/main/java/org/basex/io/IOFile.java:337–341  ·  view source on GitHub ↗

Copies a file to another target. @param target target @throws IOException I/O exception

(final IOFile target)

Source from the content-addressed store, hash-verified

335 * @throws IOException I/O exception
336 */
337 public void copyTo(final IOFile target) throws IOException {
338 // create parent directory of target file
339 target.parent().md();
340 Files.copy(toPath(), target.toPath(), StandardCopyOption.REPLACE_EXISTING);
341 }
342
343 @Override
344 public boolean eq(final IO io) {

Callers 2

exportMethod · 0.80
copyMethod · 0.80

Calls 4

toPathMethod · 0.95
mdMethod · 0.80
parentMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected