Package org.projectnessie.gc.files.local
Class LocalFiles
- java.lang.Object
-
- org.projectnessie.gc.files.local.LocalFiles
-
- All Implemented Interfaces:
FileDeleter,FilesLister
public class LocalFiles extends java.lang.Object implements FilesLister, FileDeleter
Implementation ofFileDeleterandFilesListerwith direct access to files on the local file system.
-
-
Constructor Summary
Constructors Constructor Description LocalFiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteResultdelete(FileReference fileReference)java.util.stream.Stream<FileReference>listRecursively(java.net.URI path)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectnessie.gc.files.FileDeleter
deleteMultiple
-
-
-
-
Method Detail
-
listRecursively
@MustBeClosed public java.util.stream.Stream<FileReference> listRecursively(java.net.URI path) throws NessieFileIOException
Description copied from interface:FilesListerReturns aStreamofFileReferencecontained in the givenpath. The returnedFileReferences have theirFileReference.base()set to thepathargument.- Specified by:
listRecursivelyin interfaceFilesLister- Throws:
NessieFileIOException
-
delete
public DeleteResult delete(FileReference fileReference)
- Specified by:
deletein interfaceFileDeleter
-
-