From 591a5e7171aa91c8320b86b3b899eb59aa9f4e7c Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Tue, 22 Feb 2022 23:16:13 -0800 Subject: [PATCH] Name calls Stat, and therefore can't be called after cleaning. --- lifecam.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lifecam.go b/lifecam.go index b47edc5..1e584ce 100644 --- a/lifecam.go +++ b/lifecam.go @@ -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)