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

Commit 776dc09

Browse files
dordillealanshaw
authored andcommitted
docs: add chunker option to files.add documentation (#350)
License: MIT Signed-off-by: Dan Ordille <[email protected]>
1 parent 0a937ac commit 776dc09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SPEC/FILES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ If no `content` is passed, then the path is treated as an empty directory
161161
- onlyHash (boolean): doesn't actually add the file to IPFS, but rather calculates its hash.
162162
- pin (boolean, default true): pin this object when adding.
163163
- raw-leaves (boolean, default false): if true, DAG leaves will contain raw file data and not be wrapped in a protobuf
164+
- chunker (string, default size-262144): chunking algorithm used to build ipfs DAGs. Available formats:
165+
- size-{size}
166+
- rabin
167+
- rabin-{avg}
168+
- rabin-{min}-{avg}-{max}
164169

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

0 commit comments

Comments
 (0)