Skip to content

Commit

Permalink
fix: use new glob source API
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 9, 2022
1 parent 3bc3a8a commit ae5a4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-to-ipfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = async function ({ getIpfsd, launchWebUI }, files) {

await Promise.all(files.map(async file => {
try {
const result = await ipfsd.api.add(globSource(file, { recursive: true }), { pin: false })
const result = await ipfsd.api.add(globSource(file, '**/*'), { pin: false })
await copyFile(ipfsd.api, result.cid, result.path)
successes.push(result)
} catch (e) {
Expand Down

0 comments on commit ae5a4a8

Please sign in to comment.