From 106ae9287733bab4e6d5430a55f02fcf8447280e Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Thu, 9 Jul 2020 17:58:44 +0900 Subject: add ipfs files write --raw-leaves --- ipfs-api/src/client/internal.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipfs-api/src/client/internal.rs') diff --git a/ipfs-api/src/client/internal.rs b/ipfs-api/src/client/internal.rs index 6c646cc..c28e251 100644 --- a/ipfs-api/src/client/internal.rs +++ b/ipfs-api/src/client/internal.rs @@ -1220,7 +1220,7 @@ impl IpfsClient { /// /// let client = IpfsClient::default(); /// let file = File::open("test.json").unwrap(); - /// let res = client.files_write("/test/file.json", true, true, true, 0, None, file); + /// let res = client.files_write("/test/file.json", true, true, true, 0, None, false, file); /// ``` /// /// Not specifying a byte `count` writes the entire input. @@ -1234,6 +1234,7 @@ impl IpfsClient { parents: bool, offset: i64, count: Option, + raw_leaves: bool, data: R, ) -> Result where @@ -1251,6 +1252,7 @@ impl IpfsClient { parents, offset, count, + raw_leaves, }, Some(form), ) -- cgit v1.2.3