Check if file Exists func exists(fs afero.Fs, path string) (bool, error) { stat, err := fs.Stat(path) if err == nil { return !stat.IsDir(), nil } if os.IsNotExist(err) { return false, nil } return false, err }
(a string, list []string)
source not stored for this graph (policy: none)
nothing calls this directly
no outgoing calls
no test coverage detected