mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-20 08:27:29 +08:00
coreiface: updates for path name refactor
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:

committed by
Steven Allen

parent
667b7f9927
commit
a54b64bede
@ -364,7 +364,7 @@ var filesCpCmd = &cmds.Command{
|
||||
func getNodeFromPath(ctx context.Context, node *core.IpfsNode, api iface.CoreAPI, p string) (ipld.Node, error) {
|
||||
switch {
|
||||
case strings.HasPrefix(p, "/ipfs/"):
|
||||
return api.ResolveNode(ctx, path.ParsePath(p))
|
||||
return api.ResolveNode(ctx, path.New(p))
|
||||
default:
|
||||
fsn, err := mfs.Lookup(node.FilesRoot, p)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user