tpl/os: Make fileExist use the same filesystem as readFile

Fixes #4633
This commit is contained in:
Bjørn Erik Pedersen 2018-04-21 23:46:34 +02:00
parent 1b9dc52ef5
commit 51af1d2ead
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -123,7 +123,7 @@ func (ns *Namespace) FileExists(i interface{}) (bool, error) {
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 {
return false, err
}