Class TreeCopier
- java.lang.Object
-
- org.craftercms.studio.impl.v1.repository.git.TreeCopier
-
- All Implemented Interfaces:
FileVisitor<Path>
- Direct Known Subclasses:
PluginTreeCopier
public class TreeCopier extends Object implements FileVisitor<Path>
Created by Sumer Jabri
-
-
Constructor Summary
Constructors Constructor Description TreeCopier(Path source, Path target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResult
postVisitDirectory(Path dir, IOException exc)
FileVisitResult
preVisitDirectory(Path dir, BasicFileAttributes attrs)
FileVisitResult
visitFile(Path file, BasicFileAttributes attrs)
FileVisitResult
visitFileFailed(Path file, IOException e)
-
-
-
Method Detail
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
- Specified by:
preVisitDirectory
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Throws:
IOException
-
visitFileFailed
public FileVisitResult visitFileFailed(Path file, IOException e) throws IOException
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Throws:
IOException
-
postVisitDirectory
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
- Specified by:
postVisitDirectory
in interfaceFileVisitor<Path>
- Throws:
IOException
-
-