public interface RecursiveCopy
FileSystemProvider
supports efficient recursive
copies.Modifier and Type | Method and Description |
---|---|
void |
copyRecursive(Path source,
Path target)
Recursively copies the source path to the target path in an efficient
way.
|
void copyRecursive(Path source, Path target) throws IOException
At least one of source
or target
will be associated with
a FileSystem
from this provider. If this method cannot
efficiently copy between the given paths, it throws
UnsupportedOperationException
, indicating that the caller should
fall back to another mechanism.
source
- the path to the file or directory to copytarget
- the target pathUnsupportedOperationException
- if this implementation does not
support copies between a given source
-target
pairIOException
- if an I/O error occurs while copying