Package net.thucydides.core.reports.util
Class CopyDirectory
java.lang.Object
java.nio.file.SimpleFileVisitor<java.nio.file.Path>
net.thucydides.core.reports.util.CopyDirectory
- All Implemented Interfaces:
java.nio.file.FileVisitor<java.nio.file.Path>
public class CopyDirectory
extends java.nio.file.SimpleFileVisitor<java.nio.file.Path>
-
Constructor Summary
Constructors Constructor Description CopyDirectory(java.nio.file.Path source, java.nio.file.Path target) -
Method Summary
Modifier and Type Method Description java.nio.file.FileVisitResultpreVisitDirectory(java.nio.file.Path directory, java.nio.file.attribute.BasicFileAttributes attributes)java.nio.file.FileVisitResultvisitFile(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attributes)Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, visitFileFailedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CopyDirectory
public CopyDirectory(java.nio.file.Path source, java.nio.file.Path target)
-
-
Method Details
-
visitFile
public java.nio.file.FileVisitResult visitFile(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attributes) throws java.io.IOException- Specified by:
visitFilein interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Overrides:
visitFilein classjava.nio.file.SimpleFileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
preVisitDirectory
public java.nio.file.FileVisitResult preVisitDirectory(java.nio.file.Path directory, java.nio.file.attribute.BasicFileAttributes attributes) throws java.io.IOException- Specified by:
preVisitDirectoryin interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Overrides:
preVisitDirectoryin classjava.nio.file.SimpleFileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-