move utilites to own module

This commit is contained in:
2024-03-23 20:07:56 +01:00
parent 9df81f3e4e
commit ca6771e72a
7 changed files with 123 additions and 6 deletions

11
utilities/fileExists.go Normal file
View File

@@ -0,0 +1,11 @@
package utilities
import (
"os"
)
// Checks if file on path exists or not
func FileExists(path string) bool {
_, err := os.Stat(path)
return !os.IsNotExist(err)
}