Versions in this module Expand all Collapse all v1 v1.13.12 Feb 9, 2025 Changes in this version + const ModeRemote + var ErrOffline = errors.New("remote filesystem is offline") + func Dir(base StatCloser, fis []fs.FileInfo) http.File + func DownloadFile(localFile string, file http.File) (err error) + func IsOffline(fs http.FileSystem) bool + func IsRemote(mode fs.FileMode) bool + func New(local string, remote Remote, offline ...bool) http.FileSystem + type Remote interface + Init func(local string, offline bool) + Lstat func(localFile string) (fs.FileInfo, error) + ReaddirAll func(localDir string, dir *os.File, offline bool) (fis []fs.FileInfo, err error) + SyncLstat func(local string, name string) (fs.FileInfo, error) + SyncOpen func(local string, name string) (http.File, error) + func RemoteOf(fs http.FileSystem) (r Remote, ok bool) + type StatCloser interface + Close func() error + Stat func() (fs.FileInfo, error)