public final class SymlinkCycleDetector
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SymlinkCycleDetector |
getInstance(java.net.URL root)
Get an instance to detect symilnk cycles in a directory tree.
|
boolean |
isSymlinkCycle(java.net.URL dir,
URLFileSystem.FileInfo[] infos)
Determine if a directory is a sylink pointing to a directory higher
up in the directory tree.
|
public static SymlinkCycleDetector getInstance(java.net.URL root)
root - the root of the directory treepublic boolean isSymlinkCycle(java.net.URL dir,
URLFileSystem.FileInfo[] infos)
false.dir - the directoryinfos - the contents of the directorytrue if the directory is a symlink cycle,
false otherwise