Commit 165f19fa authored by Matt Bell's avatar Matt Bell

core/commands: get: Place files at root of TAR when using a multi-element ipfs path

parent 04f92118
......@@ -51,7 +51,8 @@ func NewReader(path string, dag mdag.DAGService, resolver *path.Resolver, compre
// writeToBuf will write the data to the buffer, and will signal when there
// is new data to read
go reader.writeToBuf(dagnode, path, 0)
_, filename := p.Split(path)
go reader.writeToBuf(dagnode, filename, 0)
return reader, nil
}
......
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