Ok, I've put some hours into it, and implemented it: 
https://pkg.go.dev/github.com/tgulacsi/go@v0.25.0/fsfuse
It uses github.com/jacobsa/fuse to export a mountable io/fs.FS.

I've only tested with os.DirFS, with that, it works as expected.

I'd love to get some feedback - if anynone interested, I can export it to 
some more direct/slimmer repo.

Tanás Gulácsi

Tamás Gulácsi a következőt írta (2023. június 23., péntek, 8:08:32 UTC+2):

> Hi,
>
> Does anyone know an existing solution for exporting an fs.FS as a FUSE 
> filesystem?
>
> As fs.FS is standard now, this would open several new possibilities,
> as a lot of interesting fs.FS implementations exist (zip, tar, DB, 
> embedded, union ....),
> and this one little glue code could export them all!
>
> Thanks in advance,
> Tamás
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f8edf7e1-a864-4ab0-b7e6-773246485da1n%40googlegroups.com.

Reply via email to