From 747d59b895201f1b2f83241f8f2ddabc3e9b96b8 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 2 May 2015 11:57:53 -0600 Subject: [PATCH] Replace Open with Stat --- config/directives.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/directives.go b/config/directives.go index 322f05a3..e39eae23 100644 --- a/config/directives.go +++ b/config/directives.go @@ -32,7 +32,7 @@ func init() { p.cfg.Root = p.tkn() // Ensure root folder exists - _, err := os.Open(p.cfg.Root) + _, err := os.Stat(p.cfg.Root) if err != nil { if os.IsNotExist(err) { // Allow this, because the folder might appear later.