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

@ -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
}