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

Commit

Permalink
feat(files.add): update files.add API
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Aug 10, 2016
1 parent f81a001 commit e2a3246
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions API/files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ If no `content` is passed, then the path is treated as an empty directory
```js
{
path: '/tmp/myfile.txt',
node: DAGNode
hash: 'QmHash',
size: 123
}
```

Expand Down Expand Up @@ -79,7 +80,8 @@ ipfs.files.createAddStream(function (err, stream) {
// 'file' will be of the form
// {
// path: '/tmp/myfile.txt',
// node: DAGNode
// hash: 'QmHash'
// size: 123
// }
})

Expand Down

0 comments on commit e2a3246

Please sign in to comment.