From 961f7187e9646cc1917ae7b3ac9ddf4246aebeff Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 28 Mar 2025 09:46:04 -0400 Subject: [PATCH] providers/os: Change statFile to stat --- providers/os/os.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)