Commit 747d59b8 authored by Matthew Holt's avatar Matthew Holt

Replace Open with Stat

parent ca95b561
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment