files = {
const entries = ipfs.addAll([
{ path: 'dir' },
{ path: 'dir/hello', content: new Blob(['hello world']) },
{ path: 'dir/bye', content: new Blob(['bye']) }
]);
const files = {};
for await (const entry of entries) {
files[entry.path] = entry;
yield files;
}
return files;
}