Explorar el Código

fix bug in gdrive purge

tags/v1.2.0
Andrea Spacca hace 3 años
padre
commit
322310d47f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      server/storage.go

+ 1
- 1
server/storage.go Ver fichero

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


Cargando…
Cancelar
Guardar