Stop wrapping

This commit is contained in:
Alexandre Bruyant 2024-01-08 08:01:04 +01:00
parent 3f708b16d9
commit 0a6b3ea264

View File

@ -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
} }