This commit is contained in:
2024-11-25 17:38:16 +07:00
parent b031b9d09b
commit e2282af31c
7 changed files with 123 additions and 0 deletions

19
internal/utils/utils.go Normal file
View File

@ -0,0 +1,19 @@
package utils
import (
"fmt"
"os"
)
func IsFolderRelease(path string) bool {
info, err := os.Stat(path)
if err != nil {
fmt.Println(err)
}
if info.IsDir() {
return true
} else {
return false
}
}