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
fad4bd39
Commit
fad4bd39
authored
Feb 02, 2019
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ls: use CoreAPI
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
01bbf29c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
options/unixfs.go
options/unixfs.go
+5
-2
No files found.
options/unixfs.go
View file @
fad4bd39
...
...
@@ -133,6 +133,9 @@ func UnixfsAddOptions(opts ...UnixfsAddOption) (*UnixfsAddSettings, cid.Prefix,
func
UnixfsLsOptions
(
opts
...
UnixfsLsOption
)
(
*
UnixfsLsSettings
,
error
)
{
options
:=
&
UnixfsLsSettings
{
Async
:
true
,
ResolveSize
:
true
,
ResolveType
:
true
,
}
for
_
,
opt
:=
range
opts
{
...
...
@@ -333,7 +336,7 @@ func (unixfsOpts) ResolveSize(resolve bool) UnixfsLsOption {
func
(
unixfsOpts
)
ResolveType
(
resolve
bool
)
UnixfsLsOption
{
return
func
(
settings
*
UnixfsLsSettings
)
error
{
settings
.
Resolve
Siz
e
=
resolve
settings
.
Resolve
Typ
e
=
resolve
return
nil
}
}
\ No newline at end of file
}
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