Provides directory contents specified by a java.nio.file.Path via a FUSE filesystem.
Uses jfuse, i.e. you need to install the specified fuse drivers for your OS.
This library calls native code and therefore requires native access to be enabled for its module, in addition to the one of jfuse:
java --enable-native-access=org.cryptomator.jfuse,org.cryptomator.frontend.fuse ...
Native access is used to locate the native FUSE library:
- On Windows, the WinFsp installation directory is read from the registry via
Advapi32.dll. - On Linux, libfuse3 is loaded via the dynamic linker and its path is resolved via
dladdr.
To try out the adapter, MirroringFuseMountTest can be run in a forked JVM with native access enabled. Both profiles prompt for what to mirror and, unless the mount provider picks the mount point itself, where to mount it.
Mirror a directory:
./mvnw test -Pmirror
Mirror a vault (additionally prompts for the passphrase):
./mvnw test -Pcrypto-mirror
Instead of being prompted, you can pass the input as properties: mirror.dir (directory to mirror), mirror.vault (vault to mirror), mirror.passphrase (vault passphrase), and mirror.mountPoint (mount point):
./mvnw test -Pcrypto-mirror -Dmirror.vault=/path/to/vault -Dmirror.passphrase=secret -Dmirror.mountPoint=/path/to/mountpoint
This project is dual-licensed under the AGPLv3 for FOSS projects as well as a commercial license for independent software vendors and resellers. If you want to use this library in applications, that are not licensed under the AGPL, feel free to contact our support team.