func exists(location string) (bool, error) {
	_, err := os.Stat(location)
	if err == nil {
		return true, nil
	}

	if os.IsNotExist(err) {
		return false, nil
	}

	return true, err
}
// exists returns whether the given file or directory exists
exists returns whether the given file or directory exists
// exists returns whether the given file or directory exists
func exists(location string) (bool, error) {
	_, err := os.Stat(location)
	if err == nil {
		return true, nil
	}
	if os.IsNotExist(err) {
		return false, nil
	}
	return true, err
}
func exists ( location string ) ( bool , error ) { _ , err := os . Stat ( location ) if err == nil { return true , nil } if os . IsNotExist ( err ) { return false , nil } return true , err }
exists returns whether the given file or directory exists
exists returns whether the given file or directory exists