chore: add fuse package
This commit is contained in:
9
internal/fuse/mount.go
Normal file
9
internal/fuse/mount.go
Normal file
@ -0,0 +1,9 @@
|
||||
package fuse
|
||||
|
||||
import "github.com/winfsp/cgofuse/fuse"
|
||||
|
||||
func Mount(mountSrc, mountDst string, opts []string) {
|
||||
fs := &Fs{RootFolder: mountSrc}
|
||||
host := fuse.NewFileSystemHost(fs)
|
||||
go host.Mount(mountDst, opts)
|
||||
}
|
Reference in New Issue
Block a user