Skip to content

This repository provides an example of macOS and Linux cross platform Swift PM based realisation of HelloWorldFS on FUSE

Notifications You must be signed in to change notification settings

botov/Swift-HelloWorldFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Swift FUSE

This repository provides an example of macOS and Linux cross platform Swift PM based realisation of HelloWorldFS

macOS

1. Install OSXFUSE

2. Install Swift build toolchain. You can skip this step if you already have Xcode installed

3. Build

swift build -Xcc -DFUSE_USE_VERSION=26 -Xcc -D_FILE_OFFSET_BITS=64 -Xswiftc -I/usr/local/include/osxfuse -Xlinker -L/usr/local/lib

4. Try it out

mkdir ../mount_point  
.build/debug/HelloWorldFS ../mount_point  
cat ../mount_point/hello.txt  

Linux (Ubuntu 16.04 LTS)

1. Install fuse development stuff

apt-get update  
apt-get install libfuse-dev  

3. Build

swift build -Xcc -DFUSE_USE_VERSION=26 -Xcc -D_FILE_OFFSET_BITS=64 -Xswiftc -I/usr/include -Xlinker -L/usr/lib -Xcc -D_GNU_SOURCE

4. Try it out

mkdir ../mount_point  
.build/debug/HelloWorldFS ../mount_point  
cat ../mount_point/hello.txt

About

This repository provides an example of macOS and Linux cross platform Swift PM based realisation of HelloWorldFS on FUSE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages