Versions in this module Expand all Collapse all v0 v0.1.1 Sep 16, 2021 v0.1.0 Sep 15, 2021 Changes in this version + func New() billy.Filesystem + func NewWithStorage(storage Storage) billy.Filesystem + type ByName []os.FileInfo + func (a ByName) Len() int + func (a ByName) Less(i, j int) bool + func (a ByName) Swap(i, j int) + type File struct + func (f *File) Close() error + func (f *File) Duplicate(filename string, mode os.FileMode, flag int) billy.File + func (f *File) Lock() error + func (f *File) Name() string + func (f *File) Read(b []byte) (int, error) + func (f *File) ReadAt(b []byte, off int64) (int, error) + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) Stat() (os.FileInfo, error) + func (f *File) Truncate(size int64) error + func (f *File) Unlock() error + func (f *File) Write(p []byte) (int, error) + type FileInfo struct + func (*FileInfo) ModTime() time.Time + func (*FileInfo) Sys() interface{} + func (fi *FileInfo) IsDir() bool + func (fi *FileInfo) Mode() os.FileMode + func (fi *FileInfo) Name() string + func (fi *FileInfo) Size() int64 + type Memory struct + 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) + type Storage interface + Children func(path string) []*File + Get func(path string) (*File, bool) + Has func(path string) bool + New func(path string, mode os.FileMode, flag int) (*File, error) + Remove func(path string) error + Rename func(from, to string) error + func NewMemoryStorage() Storage