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
Modifier and TypeMethodDescriptiongetMode
(File f, FS.Attributes attributes) Compute the FileMode for a given File, based on its attributes.
-
Method Details
-
getMode
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.
-