mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:25:03 +01:00
drive: allow shortcut resolution and creation to be retried
This was an oversight in the original code - these operations should always have been retriable.
This commit is contained in:
parent
8a429d12cf
commit
250f8d9371
@ -689,7 +689,7 @@ func containsString(slice []string, s string) bool {
|
|||||||
|
|
||||||
// getFile returns drive.File for the ID passed and fields passed in
|
// getFile returns drive.File for the ID passed and fields passed in
|
||||||
func (f *Fs) getFile(ID string, fields googleapi.Field) (info *drive.File, err error) {
|
func (f *Fs) getFile(ID string, fields googleapi.Field) (info *drive.File, err error) {
|
||||||
err = f.pacer.CallNoRetry(func() (bool, error) {
|
err = f.pacer.Call(func() (bool, error) {
|
||||||
info, err = f.svc.Files.Get(ID).
|
info, err = f.svc.Files.Get(ID).
|
||||||
Fields(fields).
|
Fields(fields).
|
||||||
SupportsAllDrives(true).
|
SupportsAllDrives(true).
|
||||||
@ -2922,7 +2922,7 @@ func (f *Fs) makeShortcut(ctx context.Context, srcPath string, dstFs *Fs, dstPat
|
|||||||
}
|
}
|
||||||
|
|
||||||
var info *drive.File
|
var info *drive.File
|
||||||
err = dstFs.pacer.CallNoRetry(func() (bool, error) {
|
err = dstFs.pacer.Call(func() (bool, error) {
|
||||||
info, err = dstFs.svc.Files.Create(createInfo).
|
info, err = dstFs.svc.Files.Create(createInfo).
|
||||||
Fields(partialFields).
|
Fields(partialFields).
|
||||||
SupportsAllDrives(true).
|
SupportsAllDrives(true).
|
||||||
|
Loading…
Reference in New Issue
Block a user