Upload of project source code files.
This commit is contained in:
14
utils/utils.go
Normal file
14
utils/utils.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package utils
|
||||
|
||||
import "os"
|
||||
|
||||
var AppData string = os.Getenv("APPDATA")
|
||||
var LocalAppData string = os.Getenv("LOCALAPPDATA")
|
||||
|
||||
func FileOrDirExists(path string) bool {
|
||||
_, err := os.Stat(path)
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user