Logs - adding date modified to tar files
@@ -7,6 +7,7 @@ import (
"io"
"strings"
"sync"
+ "time"
"github.com/sirupsen/logrus"
@@ -54,6 +55,7 @@ func CreateTar(ctx context.Context, w io.Writer, files []string, client s3wrappe
Name: fileName,
Size: objectSize,
Mode: 0644,
+ ModTime: time.Now(),
}
err = tarWriter.WriteHeader(&header)
if err != nil && !continueOnError {
