go-fuse icon indicating copy to clipboard operation
go-fuse copied to clipboard

support Windows through dokany or winfsp

Open lonnietc opened this issue 1 year ago • 4 comments

Looking for a good cross-platform FUSE library that will also build with Go on Windows.

Will this one build on Windows? Thanks

lonnietc avatar Nov 27 '22 21:11 lonnietc

After importing the library and then trying to build, I get these errors:

go build example/hello/main.go
# github.com/hanwen/go-fuse/v2/fuse
fuse\types.go:557:2: undefined: Attr
fuse\types.go:585:2: undefined: Attr
fuse\api.go:285:41: undefined: GetAttrIn
fuse\api.go:286:41: undefined: SetAttrIn
fuse\api.go:289:39: undefined: MknodIn
fuse\api.go:313:42: undefined: SetXAttrIn
fuse\api.go:319:40: undefined: CreateIn
fuse\api.go:321:38: undefined: ReadIn
fuse\api.go:330:39: undefined: WriteIn
fuse\api.go:339:41: undefined: ReadIn
fuse\api.go:339:41: too many errors

lonnietc avatar Nov 27 '22 21:11 lonnietc

AFAIK, FUSE doesn't exist on windows. Why would you try to build it on windows?

hanwen avatar Nov 27 '22 22:11 hanwen

I found

https://github.com/winfsp/cgofuse

and Dokany is supposed to have a wrapper for FUSE as well

https://github.com/dokan-dev/dokany

but have not tried it yet.

lonnietc avatar Nov 27 '22 22:11 lonnietc

I don't use windows. If you can get go-fuse to work with dokany or winfsp, I'm happy to review contributions.

hanwen avatar Nov 28 '22 17:11 hanwen