Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

File copy doesn't work when the destination path is in the same folder as the original file. #228

Closed
gandhiz opened this issue Jul 5, 2017 · 1 comment

Comments

@gandhiz
Copy link

gandhiz commented Jul 5, 2017

Hi,

The following code doesn't work when toParentFolderId is the same folder id as the original file:

var status = await client.ItemWithPath(fromPath).Copy(toFileName, new ItemReference {Id = toParentFolderId}).Request().PostAsync();
var item = await status.PollForOperationCompletionAsync(null, CancellationToken.None);

The error I get is:

Microsoft.Graph.ServiceException: Code: generalException
Message: Unexpected exception returned from the service.

This error appears after I updated Microsoft.OneDriveSDK to the latest version.

Do you have the same issue?

Thanks.

@baywet
Copy link
Member

baywet commented Oct 2, 2024

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #259 for more information

@baywet baywet closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants