Skip to content

Commit

Permalink
export command should make folders with cidv1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed May 10, 2021
1 parent 772ad22 commit c73c772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async function exportPackages(db) {
// no existing export folder
}

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

var loadpkgs = new Promise((resolve, reject) => {
var key = "cid:"
Expand All @@ -274,7 +274,7 @@ async function exportPackages(db) {
for (const pkg of packages) {
log.info('Exporting', pkg.manager, pkg.name, pkg.version)
try{
await ipfs.files.mkdir(`/forage/export/${pkg.manager}/${pkg.name}`, {parents: true})
await ipfs.files.mkdir(`/forage/export/${pkg.manager}/${pkg.name}`, {parents: true, cidVersion: 1})
} catch(e) {
// folder already exists
}
Expand Down

0 comments on commit c73c772

Please sign in to comment.