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 {
|
for _, fl := range frameMap {
|
||||||
pkg, err := fl.Package()
|
pkg, err := fl.Package()
|
||||||
die.If(err)
|
die.If(err)
|
||||||
|
|
||||||
|
path, err := pkg.Frames.Name()
|
||||||
|
die.If(err)
|
||||||
|
|
||||||
err = lifecam.PackageZip(pkg, *clean)
|
err = lifecam.PackageZip(pkg, *clean)
|
||||||
die.If(err)
|
die.If(err)
|
||||||
|
|
||||||
if *upload {
|
if *upload {
|
||||||
path, err := pkg.Frames.Name()
|
|
||||||
die.If(err)
|
|
||||||
n, err := minio.Upload(path, lifecam.MimeZip)
|
n, err := minio.Upload(path, lifecam.MimeZip)
|
||||||
die.If(err)
|
die.If(err)
|
||||||
log.Printf("uploaded %s [%d bytes]", path, n)
|
log.Printf("uploaded %s [%d bytes]", path, n)
|
||||||
|
|
Loading…
Reference in New Issue