Versions in this module Expand all Collapse all v1 v1.1.0 Nov 26, 2022 Changes in this version + var ErrIsDir = errors.New("is a directory") + var ErrNotLink = errors.New("not a link") + type DirEntry struct + func (e *DirEntry) Info() (fs.FileInfo, error) + func (e *DirEntry) IsDir() bool + func (e *DirEntry) Name() string + func (e *DirEntry) Type() fs.FileMode + type Memory struct + func New() *Memory + func (fs *Memory) CountDirContents(name string) (int, error) + func (fs *Memory) UserHomeDir() (string, error) + func (fs *Memory) WorkDir() string + func (m *Memory) AddFile(path string, mode fs.FileMode, data []byte) error + func (m *Memory) MkdirAll(path string, perm fs.FileMode) error + func (m *Memory) Open(name string) (fs.File, error) + func (m *Memory) ReadDir(name string) ([]fs.DirEntry, error) + func (m *Memory) ReadFile(name string) ([]byte, error) + func (m *Memory) ReadLink(name string) (string, error) + func (m *Memory) Stat(name string) (fs.FileInfo, error) + func (m *Memory) Symlink(target string, path string, perm fs.FileMode) error