Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest commit

History

History

jfuse-examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

jFUSE Examples

Assuming you have built the parent project (mvn package), you can run these examples directly from the shell.

These examples require JDK 22 or newer. You may want to adjust paths, such as the java.library.path.

Running the hello world example:

$JAVA_HOME/bin/java \
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.mac,org.cryptom ator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.HelloWorldFileSystem \
/path/to/mountpoint

Running the POSIX mirror example:

$JAVA_HOME/bin/java \
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.mac,org.cryptom ator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.PosixMirrorFileSystem \
/path/to/to-be-mirrored/dir /path/to/mountpoint

Running the Windows mirror example:

$JAVA_HOME/bin/java \
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.win \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.WindowsMirrorFileSystem \
C:/path/to/to-be-mirrored/dir M: