mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
coreapi: support symlinks in unixfile
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
parent
f2f677be61
commit
e4020f96bb
@ -159,6 +159,9 @@ func newUnixfsFile(ctx context.Context, dserv ipld.DAGService, nd ipld.Node) (fi
|
||||
if fsn.IsDir() {
|
||||
return newUnixfsDir(ctx, dserv, nd)
|
||||
}
|
||||
if fsn.Type() == ft.TSymlink {
|
||||
return files.NewLinkFile(string(fsn.Data()), nil), nil
|
||||
}
|
||||
|
||||
case *dag.RawNode:
|
||||
default:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user