Compare commits

..

No commits in common. "eb370a6cb3f9211c46ef05e2acac9025fea3ed6f" and "81a0a9f9e8a4dfd5f29aaac764ef912c92fd4e1f" have entirely different histories.

10
main.go
View File

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