ipfs http client add folder
const addedFiles: AddedFiles[] = []
for await (const file of ipfsClient.addAll(
globSource(path, '**/*', {
hidden: true,
}),
{ ...ipfsOptions, fileImportConcurrency: 50 }
)) {
addedFiles.push({
cid: file.cid.toString(),
path: file.path,
size: file.size,
})
}