Package net.shibboleth.idp.installer
Class InstallerSupport.NameClashVisitor
java.lang.Object
java.nio.file.SimpleFileVisitor<Path>
net.shibboleth.idp.installer.InstallerSupport.NameClashVisitor
- All Implemented Interfaces:
FileVisitor<Path>
- Enclosing class:
- InstallerSupport
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) booleandid 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:
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.
-