Documentation ¶
Overview ¶
Package memfs provides a billy filesystem base on memory.
Index ¶
- type Memory
- func (fs *Memory) Base() string
- func (fs *Memory) Create(filename string) (billy.File, error)
- func (fs *Memory) Dir(path string) billy.Filesystem
- func (fs *Memory) Join(elem ...string) string
- 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(base string) (entries []billy.FileInfo, err error)
- func (fs *Memory) Remove(filename string) error
- func (fs *Memory) Rename(from, to string) error
- func (fs *Memory) Stat(filename string) (billy.FileInfo, error)
- func (fs *Memory) TempFile(dir, prefix string) (billy.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory a very convenient filesystem based on memory files
func (*Memory) Dir ¶
Dir creates a new memory filesystem whose root is the given path inside the current filesystem.
Click to show internal directories.
Click to hide internal directories.