Interface PathGroup.TransformHandler
- Enclosing class:
PathGroup
public static interface PathGroup.TransformHandler
Handler of file copying and directory creating.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Request to copy a file from the given source location into the given destination location.default void
copySymbolicLink
(Path src, Path dst) Request to copy a symbolic link from the given source location into the given destination location.default void
createDirectory
(Path dir) Request to create a directory at the given location.
-
Method Details
-
copyFile
Request to copy a file from the given source location into the given destination location.- Parameters:
src
- the source file locationdst
- the destination file location- Throws:
IOException
- If an I/O error occurs- Implementation Note:
- Default implementation takes no action
-
createDirectory
Request to create a directory at the given location.- Parameters:
dir
- the path where the directory is requested to be created- Throws:
IOException
- Implementation Note:
- Default implementation takes no action
-
copySymbolicLink
Request to copy a symbolic link from the given source location into the given destination location.- Parameters:
src
- the source symbolic link locationdst
- the destination symbolic link location- Throws:
IOException
- If an I/O error occurs- Implementation Note:
- Default implementation calls
copyFile(java.nio.file.Path, java.nio.file.Path)
.
-