Package io.datarouter.filesystem.raw
Class DirectoryManager
java.lang.Object
io.datarouter.filesystem.raw.DirectoryManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryManager(PathService pathService, BinaryFileService binaryFileService, String rootPathString) -
Method Summary
Modifier and TypeMethodDescriptioncreateSubdirectory(io.datarouter.storage.util.Subpath subpath) deleteDescendants(io.datarouter.storage.util.Subpath subpath) booleangetRoot()Optional<byte[]> Optional<byte[]> readInputStream(String relativePathString) io.datarouter.scanner.Scanner<Path> scanChildren(io.datarouter.storage.util.Subpath subpath, Set<String> excludingFilenames, int limit, boolean sorted) scanDescendantsPaged(io.datarouter.storage.util.Subpath subpath, boolean includeDirectories, boolean sorted) voidThis DirectoryManager object will become unusable and need to be recreatedwrite(String relativePathString, InputStream inputStream)
-
Constructor Details
-
DirectoryManager
public DirectoryManager(PathService pathService, BinaryFileService binaryFileService, String rootPathString)
-
-
Method Details
-
exists
-
length
-
createSubdirectory
-
scanChildren
-
scanDescendantsPaged
-
size
-
write
-
write
-
read
-
read
-
readInputStream
-
delete
-
deleteDescendants
-
selfDestruct
public void selfDestruct()This DirectoryManager object will become unusable and need to be recreated -
getRoot
-