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.