Package org.opencms.util
Class CmsFileUtil.FileWalkState
- java.lang.Object
-
- org.opencms.util.CmsFileUtil.FileWalkState
-
- Enclosing class:
- CmsFileUtil
public static class CmsFileUtil.FileWalkState extends java.lang.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 Summary
Constructors Constructor Description FileWalkState(java.io.File currentDir, java.util.List<java.io.File> dirs, java.util.List<java.io.File> files)
Creates a new file walk state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getCurrentDir()
Gets the current directory.java.util.List<java.io.File>
getDirectories()
Gets the list of subdirectories.java.util.List<java.io.File>
getFiles()
Returns the list of files.
-
-
-
Constructor Detail
-
FileWalkState
public FileWalkState(java.io.File currentDir, java.util.List<java.io.File> dirs, java.util.List<java.io.File> files)
Creates a new file walk state.- Parameters:
currentDir
- the current directorydirs
- the list of subdirectoriesfiles
- the list of files
-
-
Method Detail
-
getCurrentDir
public java.io.File getCurrentDir()
Gets the current directory.- Returns:
- the current directory
-
getDirectories
public java.util.List<java.io.File> getDirectories()
Gets the list of subdirectories.- Returns:
- the list of subdirectories
-
getFiles
public java.util.List<java.io.File> getFiles()
Returns the list of files.- Returns:
- the list of files
-
-