Name calls Stat, and therefore can't be called after cleaning.

This commit is contained in:
Kyle Isom 2022-02-22 23:16:13 -08:00
parent a31c696733
commit 591a5e7171
1 changed files with 4 additions and 2 deletions

View File

@ -58,12 +58,14 @@ func main() {
for _, fl := range frameMap {
pkg, err := fl.Package()
die.If(err)
path, err := pkg.Frames.Name()
die.If(err)
err = lifecam.PackageZip(pkg, *clean)
die.If(err)
if *upload {
path, err := pkg.Frames.Name()
die.If(err)
n, err := minio.Upload(path, lifecam.MimeZip)
die.If(err)
log.Printf("uploaded %s [%d bytes]", path, n)