Documentation
¶
Index ¶
- Constants
- func NewCached(local string, fsRemote http.FileSystem, notifyOrNil NotifyFile, cacheFile bool, ...) (fs http.FileSystem, err error)
- func NewRemote(fsRemote http.FileSystem, notifyOrNil NotifyFile, cacheFile bool) (ret cached.Remote, err error)
- func SetDebug(dbgFlags int)
- func TouchDirCached(dir string) error
- func WriteStubFile(localFile string, fi fs.FileInfo) error
- type NotifyFile
Constants ¶
View Source
const ( DbgFlagNetwork = 1 << iota DbgFlagAll = DbgFlagNetwork )
View Source
const (
SysFilePrefix = ".fscache."
)
Variables ¶
This section is empty.
Functions ¶
func NewCached ¶
func NewCached(local string, fsRemote http.FileSystem, notifyOrNil NotifyFile, cacheFile bool, offline ...bool) (fs http.FileSystem, err error)
NewCached creates a cached http.FileSystem to speed up listing directories and accessing file contents (optional, only when `cacheFile` is true). If `offline` is true, the cached http.FileSystem doesn't access `fsRemote http.FileSystem`.
func NewRemote ¶
func NewRemote(fsRemote http.FileSystem, notifyOrNil NotifyFile, cacheFile bool) (ret cached.Remote, err error)
func TouchDirCached ¶ added in v1.12.21
Types ¶
Click to show internal directories.
Click to hide internal directories.