Versions in this module Expand all Collapse all v0 v0.0.0 Jan 18, 2024 Changes in this version + func DeleteFile(ctx context.Context, fullPath string) error + func DeleteLocalFileIfExists(filename string) + func DirSize(path string) (int64, error) + func EnsureDirectoryExists(dir string) error + func FileExists(ctx context.Context, fullPath string) (bool, error) + func FileReader(ctx context.Context, fullPath string, offset, length int64) (io.ReadCloser, error) + func FileWriter(ctx context.Context, fullPath string) (io.WriteCloser, error) + func ReadFile(ctx context.Context, fullPath string) ([]byte, error) + func WriteFile(ctx context.Context, fullPath string, data []byte) (int, error) + type DirUsage struct + AvailBytes uint64 + FreeBytes uint64 + TotalBytes uint64 + UsedBytes uint64 + func GetDirUsage(path string) (*DirUsage, error)