onedrive: fall back to normal copy if server-side copy unavailable (#4903)

Fixes #4342 by:
* Disabling server-side copy if either drive isn't OneDrive Personal
* Falling back to normal copy if server-side copy fails
This commit is contained in:
Alex Chen
2021-01-05 21:26:00 +08:00
committed by GitHub
parent add7a35e55
commit b594cb9430
2 changed files with 19 additions and 7 deletions

View File

@@ -281,6 +281,7 @@ type CreateShareLinkResponse struct {
type AsyncOperationStatus struct {
PercentageComplete float64 `json:"percentageComplete"` // A float value between 0 and 100 that indicates the percentage complete.
Status string `json:"status"` // A string value that maps to an enumeration of possible values about the status of the job. "notStarted | inProgress | completed | updating | failed | deletePending | deleteFailed | waiting"
ErrorCode string `json:"errorCode"` // Not officially documented :(
}
// GetID returns a normalized ID of the item