Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix: Fix a bug where sometimes download dir wouldn't exist and crash
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Feb 18, 2020
1 parent 4a573ed commit 7e1f2a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/actions/dat-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ export default class DatMiddleware {

async loadFromDisk () {
try {
await mkdirp(this.downloadsDir)
await mkdirp(this.dataDir)
} catch (_) {}

Expand Down

0 comments on commit 7e1f2a7

Please sign in to comment.