package main import ( "io/fs" "os" ) func statPath(p string) (fs.FileInfo, error) { return os.Stat(p) }