public class FsDataFolder extends Object implements DataFolder
Modifier and Type | Field and Description |
---|---|
private File |
folder
The directory from the filesystem
|
Constructor and Description |
---|
FsDataFolder(File folder) |
Modifier and Type | Method and Description |
---|---|
DataFile |
findFile(String name)
Finds a file in this folder.
|
DataFolder |
findFolder(String name)
Finds a sub folder in this folder.
|
List<FsDataFile> |
getFiles()
Finds all files inside this folder.
|
File |
getFolder()
The directory from the filesystem
|
List<FsDataFolder> |
getFolders()
Finds the all sub folders inside this folder.
|
String |
getName()
The name of this folder.
|
DataFolder |
getParent()
The parent folder of this folder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forAllFiles, forAllFiles, getFolder, getPath
private final File folder
@ConstructorProperties(value="folder") @Generated(value="lombok") public FsDataFolder(File folder)
public DataFile findFile(String name)
DataFolder
findFile
in interface DataFolder
name
- the name of the filenull
if no file with such a name existspublic DataFolder findFolder(String name)
DataFolder
findFolder
in interface DataFolder
name
- the name of the sub foldernull
if no folder with such a name existspublic List<FsDataFile> getFiles()
DataFolder
sub folder
getFiles
in interface DataFolder
public List<FsDataFolder> getFolders()
DataFolder
getFolders
in interface DataFolder
public String getName()
DataFolder
getName
in interface DataFolder
null
for the root folderpublic DataFolder getParent()
DataFolder
getParent
in interface DataFolder
null
if this folder is the root folder@Generated(value="lombok") public File getFolder()
Copyright © 2022 fastnate.org. All rights reserved.