Versions in this module Expand all Collapse all v1 v1.1.3 Sep 5, 2021 v1.1.2 Sep 5, 2021 Changes in this version + type DirHandle struct + func CacheDir() (DirHandle, error) + func ConfigDir() (DirHandle, error) + func GetDirHandle(path string) (DirHandle, error) + func GetOrCreateDirHandle(path string, perm os.FileMode) (DirHandle, error) + func TempDir() (DirHandle, error) + func (self *DirHandle) CreateArchive(name string) (FileHandle, error) + func (self *DirHandle) GetFileHandle(name string) (FileHandle, error) + func (self *DirHandle) GetOrCreateSubDirHandle(name string, perm os.FileMode) (DirHandle, error) + func (self *DirHandle) GetSubDirHandle(name string) (DirHandle, error) + func (self *DirHandle) Ls() ([]FSHandle, error) + func (self *DirHandle) ReadFile(name string) ([]byte, error) + func (self *DirHandle) WriteFile(name string, data []byte, perm os.FileMode) (FileHandle, error) + type FSHandle struct + Kind Kind + MTime time.Time + Name string + Path string + Size int64 + func GetFSHandle(path string) (FSHandle, error) + func (self *FSHandle) AsDirHandle() (DirHandle, error) + func (self *FSHandle) AsFileHandle() (FileHandle, error) + func (self *FSHandle) Dir() (DirHandle, error) + func (self *FSHandle) Dirname() string + func (self *FSHandle) Move(path string) error + func (self *FSHandle) Rename(name string) error + type FileHandle struct + func GetFileHandle(path string) (FileHandle, error) + func (fh *FileHandle) Copy(path string) (err error) + func (self *FileHandle) Backup() (string, error) + func (self *FileHandle) CopyTo(w io.Writer) error + func (self *FileHandle) MimeType() (string, error) + func (self *FileHandle) Read() ([]byte, error) + func (self *FileHandle) ReadString() (string, error) + func (self *FileHandle) Remove() error + type Kind int + const DEV + const DIR + const FILE + const LINK + const PIPE + const SOCKET + func KindFromFileInfo(fileInfo os.FileInfo) Kind + func (self *Kind) UnmarshalJSON(data []byte) error + func (self Kind) MarshalJSON() ([]byte, error) + func (self Kind) String() string