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

Commit

Permalink
docs: add chunker option to files.add documentation (#350)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Dan Ordille <[email protected]>
  • Loading branch information
dordille authored and alanshaw committed Aug 25, 2018
1 parent 0a937ac commit 776dc09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SPEC/FILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ If no `content` is passed, then the path is treated as an empty directory
- onlyHash (boolean): doesn't actually add the file to IPFS, but rather calculates its hash.
- pin (boolean, default true): pin this object when adding.
- raw-leaves (boolean, default false): if true, DAG leaves will contain raw file data and not be wrapped in a protobuf
- chunker (string, default size-262144): chunking algorithm used to build ipfs DAGs. Available formats:
- size-{size}
- rabin
- rabin-{avg}
- rabin-{min}-{avg}-{max}

`callback` must follow `function (err, res) {}` signature, where `err` is an error if the operation was not successful. `res` will be an array of:

Expand Down

0 comments on commit 776dc09

Please sign in to comment.