提交 b5fc3cae 作者: Juan Batiz-Benet

cmd/add: output file hash Fixed #239

上级 70e1f9b6
......@@ -108,6 +108,14 @@ func addFile(n *core.IpfsNode, fpath string, depth int, out io.Writer) (*dag.Nod
log.Info("adding subblock: %s %s", l.Name, l.Hash.B58String())
}
k, err := root.Key()
if err != nil {
return nil, err
}
// output that we've added this node
fmt.Fprintf(out, "added %s %s\n", k, fpath)
return root, nil
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论