mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-24 03:10:19 +01:00
fix bug in gdrive purge
This commit is contained in:
parent
76fd83b599
commit
322310d47f
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ func (s *GDrive) Purge(days time.Duration) (err error) {
|
|||
nextPageToken := ""
|
||||
|
||||
expirationDate := time.Now().Add(-1 * days).Format(time.RFC3339)
|
||||
q := fmt.Sprintf("'%s' in parents and modifiedTime > '%s' and mimeType!='%s' and trashed=false", s.rootId, expirationDate, GDriveDirectoryMimeType)
|
||||
q := fmt.Sprintf("'%s' in parents and modifiedTime < '%s' and mimeType!='%s' and trashed=false", s.rootId, expirationDate, GDriveDirectoryMimeType)
|
||||
l, err := s.list(nextPageToken, q)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue