Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
c9ea7960
Commit
c9ea7960
authored
Jan 24, 2015
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unixfs/tar: Ignore /ipfs/ in path
parent
165f19fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tar/reader.go
tar/reader.go
+5
-0
No files found.
tar/reader.go
View file @
c9ea7960
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment