Beispiel #1
0
// Exists checks if a file or directory exists.
func Exists(path string, fs afero.Fs) (bool, error) {
	return afero.Exists(fs, path)
}
Beispiel #2
0
func (env *TestEnv) FileExists(path string) bool {
	result, _ := afero.Exists(env.fs, path)
	return result
}