File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/main/java/org/cryptomator/integrations/mount Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 44import org .jetbrains .annotations .Contract ;
55import org .jetbrains .annotations .Range ;
66
7+ import java .nio .file .FileSystemException ;
78import java .nio .file .Path ;
9+ import java .util .Map ;
810import java .util .Set ;
911import java .util .stream .Stream ;
1012
@@ -85,6 +87,18 @@ default boolean hasCapability(MountCapability capability) {
8587 * @return New mount builder
8688 */
8789 @ Contract ("_ -> new" )
88- MountBuilder forFileSystem (Path fileSystemRoot );
90+ default MountBuilder forFileSystem (Path fileSystemRoot ) {
91+ return forFileSystem (fileSystemRoot , Map .of ());
92+ };
93+
94+ /**
95+ * Creates a new mount builder.
96+ *
97+ * @param fileSystemRoot The root of the VFS to be mounted
98+ * @param secretKnowledge Mapping of fs specific exceptions, only known by lib consumer
99+ * @return New mount builder
100+ */
101+ @ Contract ("_ -> new" )
102+ MountBuilder forFileSystem (Path fileSystemRoot , Map <Class <? extends FileSystemException >, ?> secretKnowledge );
89103
90104}
You can’t perform that action at this time.
0 commit comments