Skip to content

Commit dfebf38

Browse files
committed
updated globSource config
1 parent 87b198c commit dfebf38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/add-to-ipfs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ async function addFileOrDirectory (ipfs, filepath) {
9090
let cid = null
9191

9292
if (stat.isDirectory()) {
93-
// @ts-ignore
94-
const files = globSource(filepath, '**/*', { recursive: true, cidVersion: 1 })
93+
const files = globSource(filepath, '**/*')
9594
const res = await last(ipfs.addAll(files, {
9695
pin: false,
9796
wrapWithDirectory: true,

0 commit comments

Comments
 (0)