Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
65f75996
Commit
65f75996
authored
Nov 19, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files2.0: updates for file type split
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
07225920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
unixfs.go
unixfs.go
+2
-2
No files found.
unixfs.go
View file @
65f75996
...
...
@@ -23,13 +23,13 @@ type UnixfsAPI interface {
// Add imports the data from the reader into merkledag file
//
// TODO: a long useful comment on how to use this for many different scenarios
Add
(
context
.
Context
,
files
.
Fil
e
,
...
options
.
UnixfsAddOption
)
(
ResolvedPath
,
error
)
Add
(
context
.
Context
,
files
.
Nod
e
,
...
options
.
UnixfsAddOption
)
(
ResolvedPath
,
error
)
// Get returns a read-only handle to a file tree referenced by a path
//
// Note that some implementations of this API may apply the specified context
// to operations performed on the returned file
Get
(
context
.
Context
,
Path
)
(
files
.
Fil
e
,
error
)
Get
(
context
.
Context
,
Path
)
(
files
.
Nod
e
,
error
)
// Ls returns the list of links in a directory
Ls
(
context
.
Context
,
Path
)
([]
*
ipld
.
Link
,
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment