-
Notifications
You must be signed in to change notification settings - Fork 54
Path parsing, validating, and normalizing. #33
Comments
I like this.
I can't think of a good use case for this, might be easier to add it to interfaces when it turns out it would be useful.
IMO it makes sense for it to be there It may also make sense to think about integrating paths with #30 and the concept of 'path parsers' / 'mounts' as that could provide a way to finally merge mfs with other paths across the codebase. |
SGTM. I'm just thinking about errors/feedback: "hey user, we failed to open RawPath() because XYZ". But we're getting ahead of ourselves.
My concern is how we'll get this information without hard-coding it. We don't have access to an IPFS node when we construct an IPFS path and I want to be able to support new namespaces through plugins. Although maybe that's not an issue, maybe we should change |
This may be a tangent, but... Is something like I feel like Edit: |
Paths reference things but don't necessarily mean you have the thing. I'd rather have an explicit |
This repository is no longer maintained and has been copied over to Boxo. We are now in the process of reviewing issues and PRs and moving the ones that are still relevant. This issue has been merged with a few other issues, and moved to ipfs/boxo#198. |
We currently validate paths after the fact using an
IsValid
method. Unfortunately, this means:Path
methods don't make much sense unless the path has been validated.So, I'm thinking we may want to change the path interface to something like:
Thoughts @magik6k?
The text was updated successfully, but these errors were encountered: