package
0.16.0
Repository: https://github.com/smithyat/go-helpers.git
Documentation: pkg.go.dev

# Functions

CopyFile copies a file from sourcePath to a destination directory destDir with a new filename.
CreateTarGz is a function that creates a .tar.gz archive from a given source directory.
DeleteFilesInDir is a function that deletes files with the specified extensions in the given directory.
DeleteFilesInDirRecursive is a function that deletes files within a specified directory if the file extensions match those provided in the 'extensions' argument.
ExtractAllTarGzInDirectory reads the specified 'srcDir' and for every .tar.gz file found, it extracts the file to the 'destDir'.
ExtractAllTarGzInDirectoryRecursive walks through the provided source directory recursively and extracts all .tar.gz files found into the destination directory.
ExtractTarGz takes an io.Reader representing a compressed tarball and a destination string representing the directory path where the files should be extracted.
GetFiles scans the provided directory and returns files that match the provided pattern.
GetFilesRecursive is a function that traverses a provided directory recursively and returns files matching a given pattern.
GzipFile compresses a file to a gzip file.
LogFilesInDir is a function that logs the names of all non-directory files in the provided directory.
LogFilesInDirRecursive is a function that logs the presence of non-directory files in a directory recursively.
MoveFile moves a file from sourcePath to destDir with the filename provided.
ShouldRunDayMonth checks if the current day or month is different from the last execution.
Touch behaves like the 'touch' command in Unix - it creates a file if it doesn't exist, and if it does exist, it deletes and recreates the file to update the timestamp.
UnzipFile decompresses a gzip file located at inputFilePath to an output file at outputFilePath.

# Structs

FileInfo represents information about a file.