Versions in this module Expand all Collapse all v1 v1.17.0 Sep 21, 2024 v1.0.0 Jul 12, 2022 Changes in this version + type FileSystem struct + func NewFileSystem() *FileSystem + func (fs *FileSystem) ChangePermission(path string, permisson os.FileMode) + func (fs *FileSystem) ClearDir(dir string) error + func (fs *FileSystem) DeleteDir(dir string) error + func (fs *FileSystem) DeleteFile(path string) error + func (fs *FileSystem) DirExists(path string) bool + func (fs *FileSystem) EnsureDir(dirName string, mode int) error + func (fs *FileSystem) EnsureTrailingSlash(dir string) string + func (fs *FileSystem) FileExists(path string) bool + func (fs *FileSystem) GetDirectoryFileNames(path string) ([]string, error) + func (fs *FileSystem) GetSubDirectoriesNames(path string) ([]string, error) + func (fs *FileSystem) PathExists(path string) bool + func (fs *FileSystem) ReadFile(path string) (string, error) + func (fs *FileSystem) RemoveStartingSlash(dir string) string + func (fs *FileSystem) RemoveTrailingSlash(dir string) string + func (fs *FileSystem) Rename(old, new string) error + func (fs *FileSystem) StoreFile(path, content string) error + type Installer struct + func NewInstaller() *Installer + func (i *Installer) DownloadFromURL(dir string, url string) (string, error) + func (i *Installer) Untar(extractPath, sourcefilePath string) error