Versions in this module Expand all Collapse all v1 v1.13.12 Feb 9, 2025 Changes in this version + func Download(destFile string, src http.File) (err error) + func File(name string, r ContentReader) http.File + func Files(files ...string) http.FileSystem + func FilesWithContent(files ...string) http.FileSystem + func HttpFile(name string, resp *http.Response) http.File + func LocalCheck(fsys http.FileSystem) (string, bool) + func Parent(parentDir string, fs http.FileSystem) http.FileSystem + func Plugins(fs http.FileSystem, plugins ...interface{}) http.FileSystem + func Root() http.FileSystem + func SequenceFile(name string, body io.ReadCloser) http.File + func Sub(fs http.FileSystem, subDir string) http.FileSystem + func Union(fs ...http.FileSystem) http.FileSystem + func Unseekable(file http.File) io.ReadCloser + func WithTracker(fs http.FileSystem, trackerInit interface{}, exts ...string) http.FileSystem + type ContentReader interface + Size func() int64 + type DirInfo struct + func NewDirInfo(name string) *DirInfo + func (p *DirInfo) Close() error + func (p *DirInfo) IsDir() bool + func (p *DirInfo) ModTime() time.Time + func (p *DirInfo) Mode() fs.FileMode + func (p *DirInfo) Name() string + func (p *DirInfo) Size() int64 + func (p *DirInfo) Stat() (fs.FileInfo, error) + func (p *DirInfo) Sys() interface{} + type FileInfo struct + Mtime time.Time + func NewFileInfo(name string, size int64) *FileInfo + func (p *FileInfo) Info() (fs.FileInfo, error) + func (p *FileInfo) IsDir() bool + func (p *FileInfo) ModTime() time.Time + func (p *FileInfo) Mode() fs.FileMode + func (p *FileInfo) Name() string + func (p *FileInfo) Size() int64 + func (p *FileInfo) Sys() interface{} + func (p *FileInfo) Type() fs.FileMode + type HttpFS struct + func Http(urlBase string, ctx ...context.Context) *HttpFS + func (fs HttpFS) With(client *http.Client, header http.Header) *HttpFS + func (p *HttpFS) Open(name string) (file http.File, err error) + type HttpOpener struct + Client *http.Client + Header http.Header + func (p *HttpOpener) Open(ctx context.Context, url string) (file http.File, err error) + type Plugin = func(fs http.FileSystem, name string) (file http.File, err error)