-
Notifications
You must be signed in to change notification settings - Fork 55
Support relative paths #15
Comments
How about a new type: type RelativePath interface {
Path // Path methods resolve Base + Target
// Target returns raw symlink target
Target() string
// Base return path of the symlink parent
Base() Path
}
func (relPath *relativePath) String() string {
if path.IsAbs(relPath.target) {
return relPath.target
}
return path.Join(relPath..base, relPath.target)
} Thoughts? cc @warpfork |
That should cover much of it. Unfortunately, there's still the issue of absolute symlinks. The current |
Users could just use
would make the interface less convenient.) |
I agree. Really, my question is: "should |
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. |
The current path type doesn't support relative paths. I'm not sure how best to do this or even if we want to do this but, for now, symlink "targets" will have to just be arbitrary strings.
The text was updated successfully, but these errors were encountered: