Compare commits

...

2 Commits

Author SHA1 Message Date
eb370a6cb3 Tentative fox for abspath
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 58s
2024-01-07 16:40:45 +01:00
a3a692b5f2 Reduce noise 2024-01-07 16:38:07 +01:00

10
main.go
View File

@ -120,8 +120,12 @@ func main() {
return nil
}
githubactions.Infof("Reading %v", innerPath)
w, err = mwriter.CreateIpfsFilePart(innerPath, innerPath)
absPath, err := filepath.Rel(path, innerPath)
if err != nil {
return err
}
w, err = mwriter.CreateIpfsFilePart(absPath, innerPath)
if err != nil {
return err
}
@ -135,8 +139,6 @@ func main() {
written, err := io.Copy(w, fileReader)
if err != nil {
return fmt.Errorf("error copying %s (%d bytes written): %v", innerPath, written, err)
} else {
githubactions.Infof("Read %v bytes from %s", written, innerPath)
}
return nil