Compare commits
2 Commits
81a0a9f9e8
...
eb370a6cb3
Author | SHA1 | Date | |
---|---|---|---|
eb370a6cb3 | |||
a3a692b5f2 |
10
main.go
10
main.go
@ -120,8 +120,12 @@ func main() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
githubactions.Infof("Reading %v", innerPath)
|
absPath, err := filepath.Rel(path, innerPath)
|
||||||
w, err = mwriter.CreateIpfsFilePart(innerPath, innerPath)
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
w, err = mwriter.CreateIpfsFilePart(absPath, innerPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -135,8 +139,6 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user