mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 04:52:31 +00:00
parent
1b9dc52ef5
commit
51af1d2ead
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ func (ns *Namespace) FileExists(i interface{}) (bool, error) {
|
||||||
return false, errors.New("fileExists needs a path to a file")
|
return false, errors.New("fileExists needs a path to a file")
|
||||||
}
|
}
|
||||||
|
|
||||||
status, err := afero.Exists(ns.deps.Fs.WorkingDir, path)
|
status, err := afero.Exists(ns.readFileFs, path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue