public final class DefaultProjectFilesystemDelegate extends Object implements ProjectFilesystemDelegate
ProjectFilesystemDelegate that talks to the filesystem via
standard Java APIs.| Constructor and Description |
|---|
DefaultProjectFilesystemDelegate(Path root) |
| Modifier and Type | Method and Description |
|---|---|
Sha1HashCode |
computeSha1(Path pathRelativeToProjectRootOrJustAbsolute) |
boolean |
exists(Path pathRelativeToProjectRoot,
LinkOption... options) |
com.google.common.collect.ImmutableMap<String,? extends Object> |
getDetailsForLogging() |
Path |
getPathForRelativePath(Path pathRelativeToProjectRoot) |
boolean |
isExecutable(Path child) |
boolean |
isSymlink(Path path) |
public DefaultProjectFilesystemDelegate(Path root)
public com.google.common.collect.ImmutableMap<String,? extends Object> getDetailsForLogging()
getDetailsForLogging in interface ProjectFilesystemDelegateString, int, or boolean.public Sha1HashCode computeSha1(Path pathRelativeToProjectRootOrJustAbsolute) throws IOException
computeSha1 in interface ProjectFilesystemDelegateIOExceptionpublic Path getPathForRelativePath(Path pathRelativeToProjectRoot)
getPathForRelativePath in interface ProjectFilesystemDelegatepublic boolean isExecutable(Path child)
isExecutable in interface ProjectFilesystemDelegatepublic boolean isSymlink(Path path)
isSymlink in interface ProjectFilesystemDelegatepublic boolean exists(Path pathRelativeToProjectRoot, LinkOption... options)
exists in interface ProjectFilesystemDelegate