public static class CmsFileUtil.FileWalkState extends java.lang.Object
The list of directories is mutable, which can be used by the callback to exclude certain directories.
Constructor and Description |
---|
CmsFileUtil.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.
|
Modifier and Type | Method and 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.
|
public CmsFileUtil.FileWalkState(java.io.File currentDir, java.util.List<java.io.File> dirs, java.util.List<java.io.File> files)
currentDir
- the current directorydirs
- the list of subdirectoriesfiles
- the list of filespublic java.io.File getCurrentDir()
public java.util.List<java.io.File> getDirectories()
public java.util.List<java.io.File> getFiles()