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

    • 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 for
      attributes - the attributes of a file
      Returns:
      a FileMode indicating whether the file is a regular file, a directory, a gitlink, etc.