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.FileVisitResult preVisitDirectory​(java.nio.file.Path directory, java.nio.file.attribute.BasicFileAttributes attributes)  
    java.nio.file.FileVisitResult visitFile​(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attributes)  

    Methods inherited from class java.nio.file.SimpleFileVisitor

    postVisitDirectory, visitFileFailed

    Methods 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:
      visitFile in interface java.nio.file.FileVisitor<java.nio.file.Path>
      Overrides:
      visitFile in class java.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:
      preVisitDirectory in interface java.nio.file.FileVisitor<java.nio.file.Path>
      Overrides:
      preVisitDirectory in class java.nio.file.SimpleFileVisitor<java.nio.file.Path>
      Throws:
      java.io.IOException