Package org.eclipse.jgit.treewalk
Interface FileTreeIterator.FileModeStrategy
-
- All Known Implementing Classes:
FileTreeIterator.DefaultFileModeStrategy
,FileTreeIterator.NoGitlinksStrategy
- Enclosing class:
- FileTreeIterator
public static interface FileTreeIterator.FileModeStrategy
An interface representing the methods used to determine the FileMode for a FileEntry.- Since:
- 4.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileMode
getMode(File f, FS.Attributes attributes)
Compute the FileMode for a given File, based on its attributes.
-
-
-
Method Detail
-
getMode
FileMode getMode(File f, FS.Attributes attributes)
Compute the FileMode for a given File, based on its attributes.- Parameters:
f
- the file to return a FileMode forattributes
- the attributes of a file- Returns:
- a FileMode indicating whether the file is a regular file, a directory, a gitlink, etc.
-
-