From 7e1f2a741c708772500a505e7f21b76456af1c92 Mon Sep 17 00:00:00 2001 From: Karissa McKelvey <633012+okdistribute@users.noreply.github.com> Date: Mon, 17 Feb 2020 22:17:59 -0800 Subject: [PATCH] fix: Fix a bug where sometimes download dir wouldn't exist and crash --- app/actions/dat-middleware.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/actions/dat-middleware.js b/app/actions/dat-middleware.js index fd5f2fa6..057497e0 100644 --- a/app/actions/dat-middleware.js +++ b/app/actions/dat-middleware.js @@ -384,6 +384,7 @@ export default class DatMiddleware { async loadFromDisk () { try { + await mkdirp(this.downloadsDir) await mkdirp(this.dataDir) } catch (_) {}