drive: Extend --drive-stop-on-upload-limit to respond to teamDriveFileLimitExceeded.

Fixes #3979
This commit is contained in:
harry 2020-03-25 19:08:50 +05:30 committed by Nick Craig-Wood
parent 9aa32bc269
commit 7d9ca3998e

3
backend/drive/drive.go Normal file → Executable file
View File

@ -616,6 +616,9 @@ func (f *Fs) shouldRetry(err error) (bool, error) {
return false, fserrors.FatalError(err)
}
return true, err
} else if f.opt.StopOnUploadLimit && reason == "teamDriveFileLimitExceeded" {
fs.Errorf(f, "Received team drive file limit error: %v", err)
return false, fserrors.FatalError(err)
}
}
}