mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 14:29:05 +02:00
12 lines
162 B
Go
12 lines
162 B
Go
package pkg
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// Checks if file on path exists or not
|
|
func FileExists(path string) bool {
|
|
_, err := os.Stat(path)
|
|
return !os.IsNotExist(err)
|
|
}
|