func FileExists(path string) (bool, error) {
	info, err := os.Stat(path)
	if err == nil {
		return !info.IsDir(), nil
	}
	return false, err
}
// FileExists returns true if the given path exists and is a file.
// This function returns false and the error encountered if the call to os.Stat fails.
FileExists returns true if the given path exists and is a file.
This function returns false and the error encountered if the call to os.Stat fails.
// FileExists returns true if the given path exists and is a file . // This function returns false and the error encountered if the call to os . Stat fails .
func FileExists(path string) (bool, error) {
	info, err := os.Stat(path)
	if err == nil {
		return !info.IsDir(), nil
	}
	return false, err
}
func FileExists ( path string ) ( bool , error ) { info , err := os . Stat ( path ) if err == nil { return ! info . IsDir ( ) , nil } return false , err }
FileExists returns true if the given path exists and is a file.
FileExists returns true if the given path exists and is a file .