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

Commit a5ee5d2

Browse files
committed
feat(files.add): update files.add API
1 parent 3aeb90d commit a5ee5d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

API/files/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ If no `content` is passed, then the path is treated as an empty directory
2828
```js
2929
{
3030
path: '/tmp/myfile.txt',
31-
node: DAGNode
31+
hash: 'QmHash', // base58 encoded multihash
32+
size: 123
3233
}
3334
```
3435

@@ -79,7 +80,8 @@ ipfs.files.createAddStream(function (err, stream) {
7980
// 'file' will be of the form
8081
// {
8182
// path: '/tmp/myfile.txt',
82-
// node: DAGNode
83+
// hash: 'QmHash' // base58 encoded multihash
84+
// size: 123
8385
// }
8486
})
8587

0 commit comments

Comments
 (0)