Skip to content

Commit ceef8b2

Browse files
committed
idea impl
1 parent 59d3a25 commit ceef8b2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/main/java/org/cryptomator/integrations/mount/MountService.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import org.jetbrains.annotations.Contract;
55
import org.jetbrains.annotations.Range;
66

7+
import java.nio.file.FileSystemException;
78
import java.nio.file.Path;
9+
import java.util.Map;
810
import java.util.Set;
911
import 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
}

0 commit comments

Comments
 (0)