Stop wrapping
This commit is contained in:
parent
3f708b16d9
commit
0a6b3ea264
4
main.go
4
main.go
@ -108,7 +108,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
q := req.URL.Query()
|
q := req.URL.Query()
|
||||||
q.Add("wrap-with-directory", "true")
|
|
||||||
q.Add("progress", "false")
|
q.Add("progress", "false")
|
||||||
q.Add("stream-true", "false")
|
q.Add("stream-true", "false")
|
||||||
req.URL.RawQuery = q.Encode()
|
req.URL.RawQuery = q.Encode()
|
||||||
@ -129,8 +128,7 @@ func main() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
relPath, _ := filepath.Rel(path, innerPath)
|
w, err := mwriter.CreateIpfsFilePart(innerPath)
|
||||||
w, err := mwriter.CreateIpfsFilePart(relPath)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user