@cryptotaxi247 / kubo / commits / 257add12a

files2.0: updates for file type split

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

Łukasz Magiera committed Nov 19, 2018 at 03:24 UTC 257add12aba544fb7bea36b972ffd8c9d8b709dd
1 file changed +2 -2
core/coreiface/unixfs.go
+2 -2
@@ -23,13 +23,13 @@ type UnixfsAPI interface {
23 // Add imports the data from the reader into merkledag file
24 //
25 // TODO: a long useful comment on how to use this for many different scenarios
26 - Add(context.Context, files.File, ...options.UnixfsAddOption) (ResolvedPath, error)
26 + Add(context.Context, files.Node, ...options.UnixfsAddOption) (ResolvedPath, error)
27
28 // Get returns a read-only handle to a file tree referenced by a path
29 //
30 // Note that some implementations of this API may apply the specified context
31 // to operations performed on the returned file
32 - Get(context.Context, Path) (files.File, error)
32 + Get(context.Context, Path) (files.Node, error)
33
34 // Ls returns the list of links in a directory
35 Ls(context.Context, Path) ([]*ipld.Link, error)