@cryptotaxi247 / kubo / commits / d3bbffb38

coreapi unixfs: multi file support in unixfs coreapi

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@9a760d89b5db34fa0fb7be8c71876e2f18dd8fa2 This commit was moved from ipfs/boxo@e50aac4cc71c5272b5a53994e958198286a585bc

Łukasz Magiera committed Oct 3, 2018 at 15:05 UTC d3bbffb3878a9fff3317ec4d439cb636dac9a153
1 file changed +2 -2
core/coreiface/unixfs.go
+2 -2
@@ -2,10 +2,10 @@ package iface
2
3 import (
4 "context"
5 - "io"
5
6 options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
7
8 + files "gx/ipfs/QmSP88ryZkHSRn1fnngAaV2Vcn63WUJzAavnRM9CVdU1Ky/go-ipfs-cmdkit/files"
9 ipld "gx/ipfs/QmdDXJs4axxefSPgK6Y1QhpJWKuDPnGJiqgq4uncb4rFHL/go-ipld-format"
10 )
11
@@ -13,7 +13,7 @@ import (
13 // NOTE: This API is heavily WIP, things are guaranteed to break frequently
14 type UnixfsAPI interface {
15 // Add imports the data from the reader into merkledag file
16 - Add(context.Context, io.ReadCloser, ...options.UnixfsAddOption) (ResolvedPath, error)
16 + Add(context.Context, files.File, ...options.UnixfsAddOption) (ResolvedPath, error)
17
18 // Cat returns a reader for the file
19 Cat(context.Context, Path) (Reader, error)