drive: stop sending notification emails when setting permissions

This commit is contained in:
Nick Craig-Wood 2024-03-25 17:23:57 +00:00
parent f167846fb9
commit d11fe9779e

View file

@ -144,6 +144,7 @@ func (f *Fs) setPermissions(ctx context.Context, info *drive.File, permissions [
err = f.pacer.Call(func() (bool, error) {
_, err = f.svc.Permissions.Create(info.Id, perm).
SupportsAllDrives(true).
SendNotificationEmail(false).
Context(ctx).Do()
return f.shouldRetry(ctx, err)
})