Przeglądaj źródła

Fix Exists() test in fileutils

pull/21/head
Matt Baer 5 lat temu
rodzic
commit
a63445f92a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      fileutils/fileutils.go

+ 1
- 1
fileutils/fileutils.go Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz