ls: use CoreAPI
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@fad4bd392abb9eb689687497d89d9e51e56486fb This commit was moved from ipfs/boxo@966d0008c10b29c04075261e3c59b0cab8953faa
Łukasz Magiera committed
Feb 2, 2019 at 00:18 UTC
3dab84314914893061a215ef9cc56f154f9a343c
1 file changed
+5
-2
core/coreiface/options/unixfs.go
+5
-2
@@ -133,6 +133,9 @@ func UnixfsAddOptions(opts ...UnixfsAddOption) (*UnixfsAddSettings, cid.Prefix,
133
func UnixfsLsOptions(opts ...UnixfsLsOption) (*UnixfsLsSettings, error) {
134
options := &UnixfsLsSettings{
135
Async: true,
136
+
137
+ ResolveSize: true,
138
+ ResolveType: true,
139
}
140
141
for _, opt := range opts {
@@ -333,7 +336,7 @@ func (unixfsOpts) ResolveSize(resolve bool) UnixfsLsOption {
336
337
func (unixfsOpts) ResolveType(resolve bool) UnixfsLsOption {
338
return func(settings *UnixfsLsSettings) error {
336
- settings.ResolveSize = resolve
339
+ settings.ResolveType = resolve
340
return nil
341
}
339
-}
\ No newline at end of file
342
+}