Commit c9ea7960 authored by Matt Bell's avatar Matt Bell

unixfs/tar: Ignore /ipfs/ in path

parent 165f19fa
......@@ -6,6 +6,7 @@ import (
"compress/gzip"
"io"
p "path"
"strings"
mdag "github.com/jbenet/go-ipfs/merkledag"
path "github.com/jbenet/go-ipfs/path"
......@@ -27,6 +28,10 @@ type Reader struct {
}
func NewReader(path string, dag mdag.DAGService, resolver *path.Resolver, compression int) (*Reader, error) {
if strings.HasPrefix(path, "/ipfs/") {
path = path[6:]
}
reader := &Reader{
signalChan: make(chan struct{}),
dag: dag,
......
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