diff options
Diffstat (limited to 'ipfs-api/src/client')
-rw-r--r-- | ipfs-api/src/client/internal.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<i64>, + raw_leaves: bool, data: R, ) -> Result<response::FilesWriteResponse, Error> where @@ -1251,6 +1252,7 @@ impl IpfsClient { parents, offset, count, + raw_leaves, }, Some(form), ) |