Files
releases/loader/filter/filter.go
T
Julio ef5564231b loader: add support for fs.FS (#5069)
There's no correct way to provide the behavior of native `os` functions
with an `fs.FS` since `fs.FS`s should reject rooted paths and only use
unix path separators ("/"). Initially I created a `rawFS` that directly
forwarded calls to the `os` package but it felt more wrong the more I
looked at it.

Relevant issues:
* https://github.com/golang/go/issues/47803
* https://github.com/golang/go/issues/44279

closes #5066

Signed-off-by: julio <julio.grillo98@gmail.com>
2022-09-06 14:06:27 +02:00

6 lines
105 B
Go

package filter
import "io/fs"
type LoaderFilter func(abspath string, info fs.FileInfo, depth int) bool