mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-09-23 19:30:34 +00:00
Compare commits
2 Commits
c8d542dbe3
...
4318a1ea15
Author | SHA1 | Date | |
---|---|---|---|
|
4318a1ea15 | ||
|
5ea588b813 |
@ -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