Documentation
¶
Index ¶
- Variables
- func CreateArchive(archivePath string, filesToAdd []string, basePath string) error
- func CreateFileP(filePath string, perm fs.FileMode) (*os.File, error)
- func Exists(path string) error
- func GetFileSize(filePath string) (int, error)
- func GetRelPathFromAbs(absPath string, base string) (string, error)
- func Info(path string) (fs.FileInfo, error)
- func IsDir(path string) error
- func MoveFile(sourcePath string, destPath string) error
- func WriteTo(filePath string, text string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPathIsDir = errors.New("supplied path is a directory") ErrPathIsFile = errors.New("supplied path is a file") )
Functions ¶
func CreateArchive ¶
func CreateFileP ¶
CreateFileP Creates a file and all its directories Make sure you close the file when using this function!
func GetFileSize ¶
func GetRelPathFromAbs ¶
GetRelPathFromAbs Get the relative path from an absolute path with a specified base dir
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.