mirror of
				https://github.com/rclone/rclone.git
				synced 2025-10-30 23:17:59 +02:00 
			
		
		
		
	yandex: handle api error on server-side move
This commit is contained in:
		| @@ -782,11 +782,10 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string | ||||
| 	} | ||||
|  | ||||
| 	_, err = f.readMetaDataForPath(ctx, dstPath, &api.ResourceInfoRequestOptions{}) | ||||
| 	if _, ok := err.(*api.ErrorResponse); ok { | ||||
| 		// does not exist | ||||
| 		//if apiErr.ErrorName == "DiskNotFoundError" { | ||||
| 		//	// OK | ||||
| 		//} | ||||
| 	if apiErr, ok := err.(*api.ErrorResponse); ok { | ||||
| 		if apiErr.ErrorName != "DiskNotFoundError" { | ||||
| 			return err | ||||
| 		} | ||||
| 	} else if err != nil { | ||||
| 		return err | ||||
| 	} else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user