]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Cache file existence state
[goredo.git] / run.go
diff --git a/run.go b/run.go
index 5e67c41c37ac0107e3a816d7b48a5258f7db4e7b..985db83918e0879af20b3988215ab3f96b957f03 100644 (file)
--- a/run.go
+++ b/run.go
@@ -126,7 +126,7 @@ func (e RunError) Error() string {
 }
 
 func mkdirs(pth string) error {
-       if _, err := os.Stat(pth); err == nil {
+       if FileExists(pth) {
                return nil
        }
        return os.MkdirAll(pth, os.FileMode(0777))