Skip to content

Difference of paths between recursive and normal calls #43

Open
dyna-dot/orbit-web
#1
@AuHau

Description

@AuHau

As part of ipfs/js-ipfs#2540 I was digging why there are different link.depth when ipfs ls is called recursively and non-recursively. I have tracked the inconsistency to how this exporter returns paths when called recursively and non-recursively.

When called using /ipfs/Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z/init-docs recursivelly, the result paths are:

  • QmUhUuiTKkkK8J6JZ9zmj8iNHPuNfGYcszgRumzhHBxEEU/contact
  • QmUhUuiTKkkK8J6JZ9zmj8iNHPuNfGYcszgRumzhHBxEEU/about
  • etc.

When called using /ipfs/Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z/init-docs non-recursivelly, the result paths are:

  • Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z/init-docs/contact
  • Qmaj2NmcyAXT8dFmZRRytE12wpcaHADzbChKToMEjBsj5Z/init-docs/about
  • etc.

Eq. the original /init-docs is suddenly part of the returned paths.

I believe there should be one way for both ways. What should be the right one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions