Permalink
Browse files

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

Fixes #4633
  • Loading branch information...
bep committed Apr 21, 2018
1 parent 1b9dc52 commit 51af1d2eadcad89e8c2906c05549352ef69ab016
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpl/os/os.go
@@ -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
}

0 comments on commit 51af1d2

Please sign in to comment.