memoryfs icon indicating copy to clipboard operation
memoryfs copied to clipboard

Doesn't work with http.FileServerFS

Open karelbilek opened this issue 10 months ago • 1 comments

Title says it all. It doesn't work with http.FileServerFS

Note that this is said by the docs:

The files provided by fsys must implement io.Seeker.

I guess this filesystem doesn't.

karelbilek avatar Apr 17 '24 13:04 karelbilek

It seems afero's NewMemMapFs is better for that, as it implements everything

https://pkg.go.dev/github.com/spf13/afero#section-readme

karelbilek avatar Apr 18 '24 06:04 karelbilek