Documentation
¶
Overview ¶
Package local provides a local filesystem implementation of the io.Medium interface.
Index ¶
- type Medium
- func (m *Medium) Delete(p string) error
- func (m *Medium) DeleteAll(p string) error
- func (m *Medium) EnsureDir(p string) error
- func (m *Medium) Exists(p string) bool
- func (m *Medium) FileGet(p string) (string, error)
- func (m *Medium) FileSet(p, content string) error
- func (m *Medium) IsDir(p string) bool
- func (m *Medium) IsFile(p string) bool
- func (m *Medium) List(p string) ([]fs.DirEntry, error)
- func (m *Medium) Read(p string) (string, error)
- func (m *Medium) Rename(oldPath, newPath string) error
- func (m *Medium) Stat(p string) (fs.FileInfo, error)
- func (m *Medium) Write(p, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Medium ¶
type Medium struct {
// contains filtered or unexported fields
}
Medium is a local filesystem storage backend.
func New ¶
New creates a new local Medium rooted at the given directory. Pass "/" for full filesystem access, or a specific path to sandbox.
Click to show internal directories.
Click to hide internal directories.