Documentation ¶
Overview ¶
Package memfs provides a billy filesystem base on memory.
Index ¶
- func New() billy.Filesystem
- type ByName
- type Memory
- func (fs *Memory) Capabilities() billy.Capability
- func (fs *Memory) Create(filename string) (billy.File, error)
- func (fs *Memory) Join(elem ...string) string
- func (fs *Memory) Lstat(filename string) (os.FileInfo, error)
- func (fs *Memory) MkdirAll(path string, perm os.FileMode) error
- func (fs *Memory) Open(filename string) (billy.File, error)
- func (fs *Memory) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)
- func (fs *Memory) ReadDir(path string) ([]os.FileInfo, error)
- func (fs *Memory) Readlink(link string) (string, error)
- func (fs *Memory) Remove(filename string) error
- func (fs *Memory) Rename(from, to string) error
- func (fs *Memory) Stat(filename string) (os.FileInfo, error)
- func (fs *Memory) Symlink(target, link string) error
- func (fs *Memory) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory a very convenient filesystem based on memory files.
func (*Memory) Capabilities ¶
func (fs *Memory) Capabilities() billy.Capability
Capabilities implements the Capable interface.
func (*Memory) Join ¶
Falls back to Go's filepath.Join, which works differently depending on the OS where the code is being executed.
Click to show internal directories.
Click to hide internal directories.