mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-09-23 19:30:34 +00:00
Merge branch 'main' into main
This commit is contained in:
commit
4318a1ea15
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user