Skip to content

Commit

Permalink
fix export command
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed May 10, 2021
1 parent 3585f28 commit 00b3de6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ async function unsubscribePackageAnnoucements(packageAnnoucementsTopic) {
}

async function exportPackages(db) {
await ipfs.files.rm('/forage/export', { recursive: true })
try{
await ipfs.files.rm('/forage/export', { recursive: true })
} catch {
// no existing export folder
}

await ipfs.files.mkdir('/forage/export', {parents: true})

var loadpkgs = new Promise((resolve, reject) => {
Expand Down

0 comments on commit 00b3de6

Please sign in to comment.