Documentation ¶
Index ¶
- func NewLocalFS() filesystem.FileSystem
- type LocalFS
- func (lfs *LocalFS) Chdir(dir string) error
- func (lfs *LocalFS) Create(name string) (filesystem.WritableFile, error)
- func (lfs *LocalFS) FileExists(file string) bool
- func (lfs *LocalFS) Mkdir(name string, perm fs.FileMode) error
- func (lfs *LocalFS) MkdirAll(path string, perm fs.FileMode) error
- func (lfs *LocalFS) Open(name string) (fs.File, error)
- func (lfs *LocalFS) OpenFile(name string, flag int, perm os.FileMode) (filesystem.WritableFile, error)
- func (lfs *LocalFS) ReadDir(dir string) ([]fs.DirEntry, error)
- func (lfs *LocalFS) ReadFile(name string) ([]byte, error)
- func (lfs *LocalFS) Stat(name string) (fs.FileInfo, error)
- func (lfs *LocalFS) WriteFile(name string, data []byte, perm fs.FileMode) error
- type LocalFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalFS ¶
func NewLocalFS() filesystem.FileSystem
Types ¶
type LocalFS ¶
type LocalFS struct { }
LocalFS is wrapper around the OS file system used to read and write files. This implements fs.FS, fs.ReadFileFS, OpenFileFS, WriteFileFS.
func (*LocalFS) Create ¶ added in v6.2.1
func (lfs *LocalFS) Create(name string) (filesystem.WritableFile, error)
func (*LocalFS) FileExists ¶
func (*LocalFS) OpenFile ¶
func (lfs *LocalFS) OpenFile(name string, flag int, perm os.FileMode) (filesystem.WritableFile, error)
Click to show internal directories.
Click to hide internal directories.