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 ProjectFilesystemDelegate
String
, int
, or boolean
.public Sha1HashCode computeSha1(Path pathRelativeToProjectRootOrJustAbsolute) throws IOException
computeSha1
in interface ProjectFilesystemDelegate
IOException
public Path getPathForRelativePath(Path pathRelativeToProjectRoot)
getPathForRelativePath
in interface ProjectFilesystemDelegate
public boolean isExecutable(Path child)
isExecutable
in interface ProjectFilesystemDelegate
public boolean isSymlink(Path path)
isSymlink
in interface ProjectFilesystemDelegate
public boolean exists(Path pathRelativeToProjectRoot, LinkOption... options)
exists
in interface ProjectFilesystemDelegate