Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

chore: fix problematic comments (#2030)

David Wood5ea588b813b3
diff --git a/pkg/utils/file/file.go b/pkg/utils/file/file.go
index 6a10144..2abf84e 100644
--- a/pkg/utils/file/file.go
+++ b/pkg/utils/file/file.go
@@ -179,7 +179,7 @@ func CreateFileAndWriteContent(path string, content string) error {
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 {
if notExist := CheckNotExist(src); notExist {
if err := CreateFile(src); err != nil {