Adding utils package
This commit is contained in:
parent
1edb798de5
commit
abfcd4923a
10
utils/path.go
Normal file
10
utils/path.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package utils
|
||||||
|
|
||||||
|
import "os"
|
||||||
|
|
||||||
|
func FileExists(file string) bool {
|
||||||
|
if _, err := os.Stat(file); err != nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user