commit
This commit is contained in:
19
internal/utils/utils.go
Normal file
19
internal/utils/utils.go
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user