feat(log): timestamp on archive only

This commit is contained in:
Mikaël Cluseau
2018-06-20 07:23:19 +11:00
parent dc622fb466
commit 3b512e6105
2 changed files with 16 additions and 17 deletions

View File

@ -18,9 +18,7 @@ func compress(path string) {
defer in.Close()
outPath := filepath.Join(filepath.Dir(path), "archives", filepath.Base(path)+".xz")
os.MkdirAll(filepath.Dir(outPath), 0700)
outPath := filepath.Join(filepath.Dir(path), filepath.Base(path)+".xz")
out, err := os.Create(outPath)
if err != nil {