Commit 670e693a authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

path: ignore prefix /ipfs/

parent b427df39
...@@ -26,6 +26,10 @@ func (s *Resolver) ResolvePath(fpath string) (*merkledag.Node, error) { ...@@ -26,6 +26,10 @@ func (s *Resolver) ResolvePath(fpath string) (*merkledag.Node, error) {
log.Debugf("Resolve: '%s'", fpath) log.Debugf("Resolve: '%s'", fpath)
fpath = path.Clean(fpath) fpath = path.Clean(fpath)
if strings.HasPrefix(fpath, "/ipfs/") {
fpath = fpath[6:]
}
parts := strings.Split(fpath, "/") parts := strings.Split(fpath, "/")
// skip over empty first elem // skip over empty first elem
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment