Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 8, 2020 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/b6f0914c4046c719cdbec93fc75cc258 to your computer and use it in GitHub Desktop.
Save parzibyte/b6f0914c4046c719cdbec93fc75cc258 to your computer and use it in GitHub Desktop.
func archivoExiste(ruta string) bool {
if _, err := os.Stat(ruta); os.IsNotExist(err) {
return false
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment