public interface MultiFileCopier extends FileCopier
FileCopier that provides a way to copy multiple files at once,
the method copyFiles(ExecutionContext, File, List, String, INodeEntry) can be overridden
to perform a more efficient multi file copy. Otherwise the
FileCopier.copyFile(ExecutionContext, File, INodeEntry, String)
is called repeatedly.| Modifier and Type | Method and Description |
|---|---|
default java.lang.String[] |
copyFiles(ExecutionContext context,
java.io.File basedir,
java.util.List<java.io.File> files,
java.lang.String remotePath,
INodeEntry node)
Copy multiple files to the node, the default implementation will use
MultiFileCopierUtil.copyMultipleFiles(FileCopier, ExecutionContext, File, List, String, INodeEntry) |
copyFile, copyFileStream, copyScriptContentdefault java.lang.String[] copyFiles(ExecutionContext context, java.io.File basedir, java.util.List<java.io.File> files, java.lang.String remotePath, INodeEntry node) throws FileCopierException
MultiFileCopierUtil.copyMultipleFiles(FileCopier, ExecutionContext, File, List, String, INodeEntry)context - contextbasedir - local base directory to determine relative paths of copied filesfiles - list of local files to copy, must all be somewhere within the basedirremotePath - remote directory path to copy file(s) to, using relative paths from the basedir as subpaths
appended to the remote pathnode - nodeFileCopierException - if an error occurs