diff --git a/providers/os/os.go b/providers/os/os.go index 3bd87eb..57f5f30 100644 --- a/providers/os/os.go +++ b/providers/os/os.go @@ -31,7 +31,7 @@ func (this *Provider) FuncMapFor (document *step.Document) template.FuncMap { "exists": stat.funcExists, "isFile": stat.funcIsFile, "isDir": stat.funcIsDir, - "statFile": stat.funcStatFile, + "stat": stat.funcStat, "readFile": stat.funcReadFile, "readDir": stat.funcReadDir, "readDirDate": stat.funcReadDirDate, @@ -79,7 +79,7 @@ func (this *state) funcIsDir (name string) (bool, error) { return info.IsDir(), nil } -func (this *state) funcStatFile (name string) (fs.FileInfo, error) { +func (this *state) funcStat (name string) (fs.FileInfo, error) { name, err := this.document.Rel(name) if err != nil { return nil, err } return os.Stat(name)