Merge branch 'main' into main

This commit is contained in:
Drew Fitzgerald 2024-12-06 10:55:32 +13:00 committed by GitHub
commit 4318a1ea15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,7 +179,7 @@ func CreateFileAndWriteContent(path string, content string) error {
return nil return nil
} }
// IsNotExistMkDir create a directory if it does not exist // IsNotExistCreateFile create a file if it does not exist
func IsNotExistCreateFile(src string) error { func IsNotExistCreateFile(src string) error {
if notExist := CheckNotExist(src); notExist { if notExist := CheckNotExist(src); notExist {
if err := CreateFile(src); err != nil { if err := CreateFile(src); err != nil {