Add getters for simpler subclassing.
MODIFY
src/main/java/org/apache/commons/io/file/CopyDirectoryVisitor.java
src/main/java/org/apache/commons/io/file/CopyDirectoryVisitor.java
@@ -67,6 +67,36 @@ protected void copy(final Path sourceFile, final Path targetFile) throws IOExcep
Files.copy(sourceFile, targetFile, copyOptions);
}
+ /**
+ * Gets the copy options.
+ *
+ * @return the copy options.
+ * @since 2.8.0
+ */
+ public CopyOption[] getCopyOptions() {
+ return copyOptions;
+ }
+
+ /**
+ * Gets the source directory.
+ *
+ * @return the source directory.
+ * @since 2.8.0
+ */
+ public Path getSourceDirectory() {
+ return sourceDirectory;
+ }
+
+ /**
+ * Gets the target directory.
+ *
+ * @return the target directory.
+ * @since 2.8.0
+ */
+ public Path getTargetDirectory() {
+ return targetDirectory;
+ }
+
@Override
public FileVisitResult preVisitDirectory(final Path directory, final BasicFileAttributes attributes)
throws IOException {

Add getters for simpler subclassing.