Class CmsFileUtil.FileWalkState

java.lang.Object
org.opencms.util.CmsFileUtil.FileWalkState
Enclosing class:
CmsFileUtil

public static class CmsFileUtil.FileWalkState extends Object
Data bean which walkFileSystem passes to its callback.

The list of directories is mutable, which can be used by the callback to exclude certain directories.

  • Constructor Details

    • FileWalkState

      public FileWalkState(File currentDir, List<File> dirs, List<File> files)
      Creates a new file walk state.

      Parameters:
      currentDir - the current directory
      dirs - the list of subdirectories
      files - the list of files
  • Method Details

    • getCurrentDir

      public File getCurrentDir()
      Gets the current directory.

      Returns:
      the current directory
    • getDirectories

      Gets the list of subdirectories.

      Returns:
      the list of subdirectories
    • getFiles

      public List<File> getFiles()
      Returns the list of files.

      Returns:
      the list of files