Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: avoid throw error when use readme code #2934

Merged
merged 1 commit into from
Mar 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/interface-ipfs-core/SPEC/FILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ const cid = 'QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF'

for await (const file of ipfs.get(cid)) {
console.log(file.path)

if (!file.content) continue;

const content = new BufferList()
for await (const chunk of file.content) {
Expand Down