Name calls Stat, and therefore can't be called after cleaning.
This commit is contained in:
parent
a31c696733
commit
591a5e7171
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue