unixfs/tar: Rename p to gopath
Matt Bell committed
Jan 26, 2015 at 17:02 UTC
5292617290446095800f7ff4bc8fae4d0d70d378
1 file changed
+3
-3
unixfs/tar/reader.go
+3
-3
@@ -5,7 +5,7 @@ import (
5
"bytes"
6
"compress/gzip"
7
"io"
8
- p "path"
8
+ gopath "path"
9
"strings"
10
"time"
11
@@ -57,7 +57,7 @@ func NewReader(path string, dag mdag.DAGService, resolver *path.Resolver, compre
57
58
// writeToBuf will write the data to the buffer, and will signal when there
59
// is new data to read
60
- _, filename := p.Split(path)
60
+ _, filename := gopath.Split(path)
61
go reader.writeToBuf(dagnode, filename, 0)
62
63
return reader, nil
@@ -95,7 +95,7 @@ func (i *Reader) writeToBuf(dagnode *mdag.Node, path string, depth int) {
95
i.emitError(err)
96
return
97
}
98
- i.writeToBuf(childNode, p.Join(path, link.Name), depth+1)
98
+ i.writeToBuf(childNode, gopath.Join(path, link.Name), depth+1)
99
}
100
return
101
}