Documentation
¶
Index ¶
- func CalculateFileHash(filePath string) (string, error)
- func CreateZipArchive(sourceDir, outputDir string) (string, error)
- func EnsureDir(dirPath string) error
- func FileExists(filePath string) bool
- func GetFileSize(filePath string) (int64, error)
- func IsDirEmpty(dirname string) bool
- func IsTextFile(filePath string) bool
- func NormalizePath(path string) string
- func SanitizeFileName(fileName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFileHash ¶
CalculateFileHash calculates SHA256 hash of a file
func CreateZipArchive ¶
CreateZipArchive creates a ZIP archive of the specified directory
func GetFileSize ¶
GetFileSize returns the size of a file in bytes
func IsTextFile ¶
IsTextFile determines if a file is likely a text file based on its extension
func NormalizePath ¶
NormalizePath normalizes a file path for cross-platform compatibility
func SanitizeFileName ¶
SanitizeFileName removes or replaces invalid characters from a filename
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.