//FileExists function will check if the file exists in the specified path and if it is a file indeed
FileExists function will check if the file exists in the specified path and if it is a file indeed
// FileExists function will check if the file exists in the specified path and if it is a file indeed
func FileExists(path string) bool {
	fileInfo, err := os.Stat(path)
	if os.IsNotExist(err) {
		return false
	}
	return !fileInfo.IsDir()
}
func FileExists ( path string ) bool { fileInfo , err := os . Stat ( path ) if os . IsNotExist ( err ) { return false } return ! fileInfo . IsDir ( ) }
FileExists function will check if the file exists in the specified path and if it is a file indeed
FileExists function will check if the file exists in the specified path and if it is a file indeed