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, Utf8SmallFileService utf8FileService, String rootPathString) -
Method Summary
Modifier and TypeMethodDescriptioncreateSubdirectory(io.datarouter.storage.util.Subpath subpath) deleteDescendants(io.datarouter.storage.util.Subpath subpath) booleangetRoot()byte[]byte[]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, Utf8SmallFileService utf8FileService, String rootPathString)
-
-
Method Details
-
exists
-
length
-
createSubdirectory
-
scanChildren
-
scanDescendantsPaged
-
size
-
write
-
write
public DirectoryManager write(String relativePathString, io.datarouter.scanner.Scanner<byte[]> chunks) -
write
-
writeUtf8
-
read
-
read
-
readUtf8
-
delete
-
deleteDescendants
-
selfDestruct
public void selfDestruct()This DirectoryManager object will become unusable and need to be recreated -
getRoot
-