doc(core_io/Add)
@jbenet wasn't sure about the terminology here. I'm certain what I wrote is not entirely correct. Feel free to edit.
Brian Tiger Chow committed
Jan 15, 2015 at 12:06 UTC
ffe6f9a949ef0105afd74f1fc48ef909f13449f2
1 file changed
+2
core/io/add.go
+2
@@ -20,6 +20,8 @@ import (
20
u "github.com/jbenet/go-ipfs/util"
21
)
22
23
+// Add builds a merkledag from the a reader, pinning all objects to the local
24
+// datastore. Returns a key representing the root node.
25
func Add(n *core.IpfsNode, r io.Reader) (u.Key, error) {
26
// TODO more attractive function signature importer.BuildDagFromReader
27
dagNode, err := importer.BuildDagFromReader(