public class VfsDataFolder extends Object implements DataFolder
Vfs.Dirs.| Constructor and Description |
|---|
VfsDataFolder(List<org.reflections.vfs.Vfs.Dir> dirs)
Creates a new root folder.
|
VfsDataFolder(List<org.reflections.vfs.Vfs.Dir> dirs,
VfsDataFolder parent,
String relativePath,
String name) |
| Modifier and Type | Method and Description |
|---|---|
DataFile |
findFile(String fileName)
Finds a file in this folder.
|
DataFolder |
findFolder(String folderName)
Finds a sub folder in this folder.
|
List<VfsDataFile> |
getFiles()
Finds all files inside this folder.
|
List<VfsDataFolder> |
getFolders()
Finds the all sub folders inside this folder.
|
String |
getName()
The name of this folder,
null if this represents the root folder. |
VfsDataFolder |
getParent()
The parent directory,
null if this represents the root folder. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforAllFiles, forAllFiles, getFolder, getPathpublic VfsDataFolder(List<org.reflections.vfs.Vfs.Dir> dirs)
dirs - the directories that represent the root of the data folderpublic VfsDataFolder(List<org.reflections.vfs.Vfs.Dir> dirs, VfsDataFolder parent, String relativePath, String name)
public DataFile findFile(String fileName)
DataFolderfindFile in interface DataFolderfileName - the name of the filenull if no file with such a name existspublic DataFolder findFolder(String folderName)
DataFolderfindFolder in interface DataFolderfolderName - the name of the sub foldernull if no folder with such a name existspublic List<VfsDataFile> getFiles()
DataFoldersub foldergetFiles in interface DataFolderpublic List<VfsDataFolder> getFolders()
DataFoldergetFolders in interface DataFolderpublic VfsDataFolder getParent()
null if this represents the root folder.getParent in interface DataFoldernull if this folder is the root folderpublic String getName()
null if this represents the root folder.getName in interface DataFoldernull for the root folderCopyright © 2026 fastnate.org. All rights reserved.