Versions in this module Expand all Collapse all v1 v1.1.0 Aug 30, 2025 v1.0.0 Aug 21, 2025 Changes in this version + func AppendStringToFile(targetFile string, content string) (err error) + func CopyFile(source, destination string) (err error) + func CreateEmptyFile(fileName string) error + func EnsureDirectoryExists(destinationDir string) error + func EnsureParentDirectoryExists(fileName string) error + func EnsurePgDataPerms(pgData string) error + func FileExists(fileName string) (bool, error) + func FormatFriendlyTimestamp(t time.Time) string + func GetDirectoryContent(dir string) (files []string, err error) + func GetFileSize(fileName string) (int64, error) + func MoveDirectoryContent(sourceDirectory, destinationDirectory string) error + func MoveFile(sourcePath, destPath string) (err error) + func OpenFileAsync(ctx context.Context, fileName string, flag int, perm os.FileMode) (f *os.File, err error) + func ReadFile(fileName string) ([]byte, error) + func ReadFileLines(fileName string) (lines []string, err error) + func RemoveDirectory(dir string) error + func RemoveDirectoryContent(dir string) (err error) + func RemoveFile(fileName string) error + func RemoveFiles(ctx context.Context, basePath string, filePaths []string) error + func RemoveRestoreExcludedFiles(ctx context.Context, basePath string) error + func WriteFileAtomic(fileName string, contents []byte, perm os.FileMode) (bool, error) + func WriteLinesToFile(fileName string, lines []string) (changed bool, err error) + func WriteStringToFile(fileName string, contents string) (changed bool, err error)