Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 5a8caea

Browse files
committed
apply spec CR
1 parent 0b459fa commit 5a8caea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SPEC/FILES.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ It returns a [Readable Stream][rs] in [Object mode](https://nodejs.org/api/strea
478478
```JavaScript
479479
const validCID = 'QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF'
480480

481-
const stream = ipfs.files.getReadableStream(validCID)
481+
const stream = ipfs.files.lsReadableStream(validCID)
482482

483483
stream.on('data', (file) => {
484484
// write the file's path and contents to standard out
@@ -490,7 +490,7 @@ A great source of [examples][] can be found in the tests for this API.
490490

491491
#### `lsPullStream`
492492

493-
> Fetch a file or an entire directory tree from IPFS that is addressed by a valid IPFS Path. The files will be yielded as Readable Streams.
493+
> Fetch a file or an entire directory tree from IPFS that is addressed by a valid IPFS Path. The files will be yielded through a Pull Stream.
494494
495495
##### `Go` **WIP**
496496

0 commit comments

Comments
 (0)