mustLogFatalf("[ERROR] Unable to get new path for certificate storage: %v",err)
}
newPath:=fileStorage.(*caddytls.FileStorage).Path
err=os.MkdirAll(string(newPath),0700)
iferr!=nil{
mustLogFatalf("[ERROR] Unable to make new certificate storage path: %v\n\nPlease follow instructions at:\nhttps://github.com/mholt/caddy/issues/902#issuecomment-228876011",err)
}
err=os.Rename(oldPath,string(newPath))
iferr!=nil{
mustLogFatalf("[ERROR] Unable to migrate certificate storage: %v\n\nPlease follow instructions at:\nhttps://github.com/mholt/caddy/issues/902#issuecomment-228876011",err)
}
// convert mixed case folder and file names to lowercase
vardonebool// walking is recursive and preloads the file names, so we must restart walk after a change until no changes