Skip to content

About

FUSE-based adapter to provide directory contents specified by a java.nio.file.Path

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

27 stars

Watchers

7 watching

Forks

Latest commit

 

History

784 Commits

Folders and files

Build Status Codacy Code Quality Codacy Coverage Known Vulnerabilities

fuse-nio-adapter

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.

Usage

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.

Mirroring Test

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

License

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.

About

FUSE-based adapter to provide directory contents specified by a java.nio.file.Path

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

27 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages