Package com.facebook.buck.io.filesystem
Interface ProjectFilesystemDelegate
-
- All Known Implementing Classes:
DefaultProjectFilesystemDelegate
,EdenProjectFilesystemDelegate
public interface ProjectFilesystemDelegate
Delegate that aProjectFilesystem
can use to leverage a specialized implementation of certain filesystem operations, tailored to the underlying filesystem. Use of the delegate is often motivated by performance reasons.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
computeSha1
Sha1HashCode computeSha1(Path pathRelativeToProjectRootOrJustAbsolute) throws IOException
- Throws:
IOException
-
isExecutable
boolean isExecutable(Path child)
-
isSymlink
boolean isSymlink(Path path)
-
exists
boolean exists(Path pathRelativeToProjectRoot, LinkOption... options)
-
getDetailsForLogging
com.google.common.collect.ImmutableMap<String,? extends Object> getDetailsForLogging()
- Returns:
- details about the delegate suitable for writing to a logger. It is recommended that the
keys of this map are unique in namespace of the things a logger may want to log. Values
must be
String
,int
, orboolean
.
-
-