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
A @{link
FileVisitor
which detects (and logs) whether a copy would overwrite.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitFile
(Path file, BasicFileAttributes attrs) boolean
did we find a name clash?Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileFailed
-
Field Details
-
nameClash
private boolean nameClashdid we find a duplicate. -
from
Path we are traversing. -
to
Path where we check for Duplicates.
-
-
Constructor Details
-
NameClashVisitor
Constructor.- Parameters:
fromDir
- Path we are traversingtoDir
- Path where we check for Duplicates
-
-
Method Details
-
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
wasNameClash
public boolean wasNameClash()did we find a name clash?- Returns:
- whether we found a name clash.
-