Replace Open with Stat

pull/41/head
Matthew Holt 2015-05-02 11:57:53 -06:00
parent ca95b561dc
commit 747d59b895
1 changed files with 1 additions and 1 deletions

View File

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