Reputation: 4109
Using Google drive's REST APIs, is it possible to copy a file from one folder to another? I can see a webservice for move but not for copy. Please help.
Thanks in advance.
Upvotes: 1
Views: 5960
Reputation: 2987
Yes, it is possible. Use Files.copy(). If you want to copy a file to different folder, put destination folder id to 'parents[]' in request body. There are sample codes for various languages you can try in the documentation.
Upvotes: 2