From e2a3246bd01068800d6f5879cdc58c1f8a66a8ad Mon Sep 17 00:00:00 2001 From: David Dias Date: Wed, 10 Aug 2016 10:08:06 +0100 Subject: [PATCH] feat(files.add): update files.add API --- API/files/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/API/files/README.md b/API/files/README.md index 1db9f929..265eee62 100644 --- a/API/files/README.md +++ b/API/files/README.md @@ -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 } ``` @@ -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 // } })