Skip to content

Commit

Permalink
Replacing OneDriveSDK with GraphSDK due to issues with copy files (re…
Browse files Browse the repository at this point in the history
…quired for #61 Simple Automatic Backup (Remote and/or Local))
  • Loading branch information
Kyrodan committed May 29, 2017
1 parent 7966256 commit d1ab05b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task Copy(string sourcePath, string destPath)
var escapedpath = Uri.EscapeDataString(sourcePath);

var destFolder = Uri.EscapeDataString(CloudPath.GetDirectoryName(destPath));
var destFilename = Uri.EscapeDataString(CloudPath.GetFileName(destPath));
var destFilename = CloudPath.GetFileName(destPath);
var destItem = await api.Drive.Root.ItemWithPath(destFolder).Request().GetAsync();
if (destItem == null)
throw new FileNotFoundException("OneDrive: Folder not found.", destFolder);
Expand Down

0 comments on commit d1ab05b

Please sign in to comment.