Versions in this module Expand all Collapse all v1 v1.0.0 Apr 17, 2021 Changes in this version + const FilePathSeparator + var ErrDestinationExists = os.ErrExist + var ErrFileClosed = errors.New("File is closed") + var ErrFileExists = os.ErrExist + var ErrFileNotFound = os.ErrNotExist + var ErrOutOfRange = errors.New("Out of range") + var ErrTooLarge = errors.New("Too large") + func AddToMemDir(dir *FileData, f *FileData) + func ChangeFileName(f *FileData, newname string) + func InitializeDir(d *FileData) + func RemoveFromMemDir(dir *FileData, f *FileData) + func SetGID(f *FileData, gid int) + func SetModTime(f *FileData, mtime time.Time) + func SetMode(f *FileData, mode os.FileMode) + func SetUID(f *FileData, uid int) + type Dir interface + Add func(*FileData) + Files func() []*FileData + Len func() int + Names func() []string + Remove func(*FileData) + type DirMap map[string]*FileData + func (m DirMap) Add(f *FileData) + func (m DirMap) Files() (files []*FileData) + func (m DirMap) Len() int + func (m DirMap) Names() (names []string) + func (m DirMap) Remove(f *FileData) + type File struct + func NewFileHandle(data *FileData) *File + func NewReadOnlyFileHandle(data *FileData) *File + func (f *File) Close() error + func (f *File) Info() *FileInfo + func (f *File) Name() string + func (f *File) Open() error + func (f *File) Read(b []byte) (n int, err error) + func (f *File) ReadAt(b []byte, off int64) (n int, err error) + func (f *File) Readdir(count int) (res []os.FileInfo, err error) + func (f *File) Readdirnames(n int) (names []string, err error) + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) Stat() (os.FileInfo, error) + func (f *File) Sync() error + func (f *File) Truncate(size int64) error + func (f *File) Write(b []byte) (n int, err error) + func (f *File) WriteAt(b []byte, off int64) (n int, err error) + func (f *File) WriteString(s string) (ret int, err error) + func (f File) Data() *FileData + type FileData struct + func CreateDir(name string) *FileData + func CreateFile(name string) *FileData + func (d *FileData) Name() string + type FileInfo struct + func GetFileInfo(f *FileData) *FileInfo + func (s *FileInfo) IsDir() bool + func (s *FileInfo) ModTime() time.Time + func (s *FileInfo) Mode() os.FileMode + func (s *FileInfo) Name() string + func (s *FileInfo) Size() int64 + func (s *FileInfo) Sys() interface{}