mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
Replace Open with Stat
This commit is contained in:
parent
ca95b561dc
commit
747d59b895
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func init() {
|
||||||
p.cfg.Root = p.tkn()
|
p.cfg.Root = p.tkn()
|
||||||
|
|
||||||
// Ensure root folder exists
|
// Ensure root folder exists
|
||||||
_, err := os.Open(p.cfg.Root)
|
_, err := os.Stat(p.cfg.Root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
// Allow this, because the folder might appear later.
|
// Allow this, because the folder might appear later.
|
||||||
|
|
Loading…
Reference in a new issue