gut/fs/file.go
2024-03-05 18:46:27 +01:00

12 lines
143 B
Go

package fs
import (
"errors"
"os"
)
func PathExists(path string) bool {
_, err := os.Stat(path)
return !errors.Is(err, os.ErrNotExist)
}