hanwen / go-fuse

FUSE bindings for Go
Other
1.97k stars 313 forks source link

support Windows through dokany or winfsp #445

Open lonnietc opened 1 year ago

lonnietc commented 1 year ago

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

Will this one build on Windows? Thanks

lonnietc commented 1 year ago

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
hanwen commented 1 year ago

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

lonnietc commented 1 year ago

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.

hanwen commented 1 year ago

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