From ae5a4a82040588c1d4e30238d34d5f2426445c0a Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 9 Feb 2022 18:00:10 +0100 Subject: [PATCH] fix: use new glob source API see https://github.com/ipfs/js-ipfs/pull/3889 --- src/add-to-ipfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-to-ipfs.js b/src/add-to-ipfs.js index 57837e6ce..7f5f4117d 100644 --- a/src/add-to-ipfs.js +++ b/src/add-to-ipfs.js @@ -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) {