public interface VirtualFileSystem
| Modifier and Type | Field and Description |
|---|---|
static VirtualPath |
ROOT
The virtual root folder of the virtual file system regardless of the operating system and its native file system structure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(VirtualPath virtualFile)
Deletes the file or directory specified by the path received as a parameter.
|
boolean |
exists(VirtualPath virtualFile)
Checks if the path received as a parameter already exists in the file system.
|
int |
getTotalNumberOfFiles()
Returns the number of all the files and folders in the file system.
|
List<VirtualPath> |
listChildren(VirtualPath parent)
Lists the files and directories that are directly under the directory specified by the path received as a parameter.
|
boolean |
mkdir(VirtualPath newFile)
Makes a new directory specified by the path received as a parameter.
|
static final VirtualPath ROOT
boolean mkdir(VirtualPath newFile)
newFile - The path that points to the directory that should be created.true if the new directory got created;
false otherwise.boolean exists(VirtualPath virtualFile)
virtualFile - The path that may or may not exist in the file system.true if the specified path already exists in the file system;
false otherwise.boolean delete(VirtualPath virtualFile)
virtualFile - The path pointing to the file or directory that should be deleted.true if the file or directory got deleted;
false otherwise.List<VirtualPath> listChildren(VirtualPath parent)
parent - The path specifying the directory the contents of which should be listed.int getTotalNumberOfFiles()
Copyright © 2023 Apache NiFi Project. All rights reserved.