gut/fs/file.go

12 lines
143 B
Go
Raw Normal View History

2024-03-05 18:46:27 +01:00
package fs
import (
"errors"
"os"
)
func PathExists(path string) bool {
_, err := os.Stat(path)
return !errors.Is(err, os.ErrNotExist)
}