Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on REST Anti-patterns. Parent comment
Here's what you need to do to copy a file to different folder in C#:
var newFile = drive.Files.Copy(null, fileId).Execute(); var newFileInNewLocationreq = drive.Files.Update(null, newFile.Id); newFileInNewLocationreq.AddParents = newFolderId; newFileInNewLocationreq.RemoveParents = oldFolderId; var newFileInNewLocation = newFileInNewLocationreq.Execute();
There are no comments on this comment yet.
Here's what you need to do to copy a file to different folder in C#:
To be fair it's just 2 API calls but rather verbose. And that's assuming all the calls work