Class PluginInstallerSupport.NameClashVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- net.shibboleth.idp.installer.plugin.impl.PluginInstallerSupport.NameClashVisitor
-
- All Implemented Interfaces:
FileVisitor<Path>
- Enclosing class:
- PluginInstallerSupport
private static final class PluginInstallerSupport.NameClashVisitor extends SimpleFileVisitor<Path>
A @{linkFileVisitorwhich detects (and logs) whether a copy would overwrite.
-
-
Constructor Summary
Constructors Constructor Description NameClashVisitor(Path fromDir, Path toDir)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResultvisitFile(Path file, BasicFileAttributes attrs)booleanwasNameClash()did we find a name clash?-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileFailed
-
-
-
-
Method Detail
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-
wasNameClash
public boolean wasNameClash()
did we find a name clash?- Returns:
- whether we found a name clash.
-
-