alist/internal/fuse/mount.go

10 lines
212 B
Go
Raw Normal View History

2022-07-19 16:39:20 +00:00
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)
}