use abs path instead of rel
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 55s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 55s
This commit is contained in:
parent
d9623d5615
commit
c269b442ed
7
main.go
7
main.go
@ -59,6 +59,7 @@ func (w *IpfsMultipartWriter) CreateIpfsAbsFilePart(name, absPath string) (io.Wr
|
|||||||
h.Set("Content-Type", "application/octet-stream")
|
h.Set("Content-Type", "application/octet-stream")
|
||||||
return w.CreatePart(h)
|
return w.CreatePart(h)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
githubactions.Infof("Checking inputs...")
|
githubactions.Infof("Checking inputs...")
|
||||||
|
|
||||||
@ -119,15 +120,13 @@ func main() {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
relPath, _ := filepath.Rel(path, innerPath)
|
|
||||||
|
|
||||||
if info.IsDir() {
|
if info.IsDir() {
|
||||||
_, err = mwriter.CreateIpfsDirectoryPart(relPath)
|
_, err = mwriter.CreateIpfsDirectoryPart(innerPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
w, err := mwriter.CreateIpfsFilePart(relPath)
|
w, err := mwriter.CreateIpfsFilePart(innerPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user