Skip to content

Commit

Permalink
Merge pull request #28 from ipfs/fix/path-selector-tail
Browse files Browse the repository at this point in the history
Add unixfs to UnixFS path selector tail
  • Loading branch information
hannahhoward authored Mar 9, 2022
2 parents 4856281 + 9214f70 commit 54ec979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func AddUnixFSReificationToLinkSystem(lsys *ipld.LinkSystem) {
func UnixFSPathSelector(path string) datamodel.Node {
segments := strings.Split(path, "/")
ssb := builder.NewSelectorSpecBuilder(basicnode.Prototype.Any)
selectorSoFar := ssb.Matcher()
selectorSoFar := ssb.ExploreInterpretAs("unixfs", ssb.Matcher())
for i := len(segments) - 1; i >= 0; i-- {
selectorSoFar = ssb.ExploreInterpretAs("unixfs",
ssb.ExploreFields(func(efsb builder.ExploreFieldsSpecBuilder) {
Expand Down

0 comments on commit 54ec979

Please sign in to comment.