Documentation ¶
Index ¶
- func NewLevelScanner(path string, openwait time.Duration) filewalk.LevelScanner
- type Option
- type T
- func (f *T) Base(path string) string
- func (f *T) Delete(_ context.Context, path string) error
- func (f *T) DeleteAll(_ context.Context, path string) error
- func (f *T) EnsurePrefix(_ context.Context, path string, perm fs.FileMode) error
- func (f *T) Get(_ context.Context, path string) ([]byte, error)
- func (f *T) IsNotExist(err error) bool
- func (f *T) IsPermissionError(err error) bool
- func (f *T) Join(components ...string) string
- func (f *T) LevelScanner(prefix string) filewalk.LevelScanner
- func (f *T) Lstat(_ context.Context, path string) (file.Info, error)
- func (f *T) Open(name string) (fs.File, error)
- func (f *T) OpenCtx(_ context.Context, name string) (fs.File, error)
- func (f *T) Put(_ context.Context, path string, perm fs.FileMode, data []byte) error
- func (f *T) ReadFile(name string) ([]byte, error)
- func (f *T) ReadFileCtx(_ context.Context, name string) ([]byte, error)
- func (f *T) Readlink(_ context.Context, path string) (string, error)
- func (f *T) Scheme() string
- func (f *T) Stat(_ context.Context, path string) (file.Info, error)
- func (f *T) SysXAttr(existing any, merge file.XAttr) any
- func (f *T) XAttr(_ context.Context, name string, info file.Info) (file.XAttr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelScanner ¶
func NewLevelScanner(path string, openwait time.Duration) filewalk.LevelScanner
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T represents the local filesystem. It implements FS, ObjectFS and filewalk.FS
func (*T) EnsurePrefix ¶
func (*T) IsNotExist ¶
func (*T) IsPermissionError ¶
func (*T) LevelScanner ¶
func (f *T) LevelScanner(prefix string) filewalk.LevelScanner
Click to show internal directories.
Click to hide internal directories.