Skip to content

Conversation

@schomatis
Copy link
Contributor

@schomatis schomatis commented Jan 12, 2022

Rough prototype for review. Sharness tests missing.

Follows unix ls -R behavior. Example:

$ ipfs init
$ ipfs files mkdir -p /1/2/3/4

$ ipfs files ls -R 
/:
1

/1:
2

/1/2:
3

/1/2/3:
4

/1/2/3/4:

Closes #8104.

@schomatis schomatis self-assigned this Jan 12, 2022
}
}
if out.Path != "" {
fmt.Fprint(w, "\n")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should skip this for the last entry we list. What would be the cleanest way to signal that? Closing the response?

@BigLep BigLep added this to the Best Effort Track milestone Mar 10, 2022
@BigLep BigLep marked this pull request as ready for review March 10, 2022 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: 🔎 In Review

Development

Successfully merging this pull request may close these issues.

Add recursive option to ipfs files ls

2 participants