# Functions

CreateFile creates a new file in the given path, creating parent directories as necessary.
GenerateFn creates a file name based on the pattern, the current time, and the rotation time.