public abstract class CopyFilesMethod extends AnchorBean<CopyFilesMethod>
Constructor and Description |
---|
CopyFilesMethod() |
Modifier and Type | Method and Description |
---|---|
void |
makeCopy(Path source,
Path destination)
Makes a copy of the file at
source at destination . |
protected abstract void |
makeCopyWithDirectory(Path source,
Path destination)
Like
makeCopy(Path,Path) but after any necessary directories are created so destination can be written. |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void makeCopy(Path source, Path destination) throws CreateException
source
at destination
.source
- the path of the file to copy fromdestination
- the path to create a copy atCreateException
- if anything goes wrongprotected abstract void makeCopyWithDirectory(Path source, Path destination) throws CreateException
makeCopy(Path,Path)
but after any necessary directories are created so destination
can be written.source
- destination
- CreateException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.