Explorar el Código

Fix Exists() test in fileutils

pull/21/head
Matt Baer hace 5 años
padre
commit
a63445f92a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      fileutils/fileutils.go

+ 1
- 1
fileutils/fileutils.go Ver fichero

@@ -9,7 +9,7 @@ import (

// Exists returns whether or not the given file exists
func Exists(p string) bool {
if _, err := os.Stat(p); err == nil {
if _, err := os.Stat(p); !os.IsNotExist(err) {
return true
}
return false


Cargando…
Cancelar
Guardar