Class AbstractContentUpgradeOperation.ListFileVisitor
java.lang.Object
org.craftercms.studio.impl.v2.upgrade.operations.site.AbstractContentUpgradeOperation.ListFileVisitor
- All Implemented Interfaces:
FileVisitor<Path>
- Enclosing class:
AbstractContentUpgradeOperation
public static class AbstractContentUpgradeOperation.ListFileVisitor
extends Object
implements FileVisitor<Path>
Implementation of
FileVisitor that collects files matching any of the given patterns- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of patterns to check the filesList of files that match any of the patternsprotected PathStarting path that should be ignored for checking the patterns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostVisitDirectory(Path dir, IOException exc) preVisitDirectory(Path dir, BasicFileAttributes attrs) visitFile(Path file, BasicFileAttributes attrs) visitFileFailed(Path file, IOException exc)
-
Field Details
-
rootPath
Starting path that should be ignored for checking the patterns -
includedPaths
List of patterns to check the files -
matchedPaths
List of files that match any of the patterns
-
-
Constructor Details
-
ListFileVisitor
-
-
Method Details
-
getMatchedPaths
-
preVisitDirectory
- Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>
-