Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewFileFromFilename ¶
CreateNewFileFromFilename given a file name, this creates a new file on-disk for writing logs.
func CreateUniqueFileName ¶
CreateUniqueFileName creates a new unused filename at the target directory. targetDir: the directory to create the file in. identifier: the base name of the file. fileExtension: the file extension suffix. attempt: the current attempt number, to prevent infinite loops.
func DirExistsOrCreate ¶
DirExistsOrCreate checks if a directory exists, and creates it if it doesn't
func RelocateExistingFileIfExists ¶
RelocateExistingFileIfExists checks if a file exists, and if it does, renames it to a unique name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.