fix bug in purge for local storage

This commit is contained in:
Andrea Spacca 2021-01-11 16:02:00 +01:00
parent 1abc7cfb0e
commit 7cf688e86e
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ import (
"google.golang.org/api/googleapi"
)
var Version = "1.2.0"
var Version = "1.2.1"
var helpTemplate = `NAME:
{{.Name}} - {{.Usage}}

View file

@ -102,7 +102,7 @@ func (s *LocalStorage) Purge(days time.Duration) (err error) {
return nil
}
if info.ModTime().After(time.Now().Add(-1 * days)) {
if info.ModTime().Before(time.Now().Add(-1 * days)) {
err = os.Remove(path)
return err
}