providers/os: Change statFile to stat
This commit is contained in:
parent
c623c4f35e
commit
961f7187e9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user