Documentation
¶
Index ¶
- type Filesystem
- func (fs *Filesystem) Create(name string) (ros.File, error)
- func (fs *Filesystem) Mkdir(name string, perm ros.FileMode) error
- func (fs *Filesystem) MkdirAll(path string, perm ros.FileMode) error
- func (fs *Filesystem) MkdirTemp(dir, pattern string) (string, error)
- func (fs *Filesystem) Open(name string) (ros.File, error)
- func (fs *Filesystem) OpenFile(name string, flag int, perm ros.FileMode) (ros.File, error)
- func (fs *Filesystem) ReadDir(name string) ([]ros.DirEntry, error)
- func (fs *Filesystem) ReadFile(name string) ([]byte, error)
- func (fs *Filesystem) Remove(name string) error
- func (fs *Filesystem) RemoveAll(path string) error
- func (fs *Filesystem) Rename(oldpath, newpath string) error
- func (fs *Filesystem) Stat(name string) (ros.FileInfo, error)
- func (fs *Filesystem) Symlink(oldname, newname string) error
- func (fs *Filesystem) WalkDir(root string, fn ros.WalkDirFunc) error
- func (fs *Filesystem) WriteFile(name string, data []byte, perm ros.FileMode) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, opts ...Option) (*Filesystem, error)
New creates a new local filesystem with the given options.
func (*Filesystem) Remove ¶
func (fs *Filesystem) Remove(name string) error
func (*Filesystem) RemoveAll ¶ added in v0.13.0
func (fs *Filesystem) RemoveAll(path string) error
func (*Filesystem) Rename ¶
func (fs *Filesystem) Rename(oldpath, newpath string) error
func (*Filesystem) Symlink ¶
func (fs *Filesystem) Symlink(oldname, newname string) error
func (*Filesystem) WalkDir ¶ added in v1.2.0
func (fs *Filesystem) WalkDir(root string, fn ros.WalkDirFunc) error
Click to show internal directories.
Click to hide internal directories.