In the Google SDK, how do I copy a folder?

Very simple question. How to copy a folder using the Google Drive API?

It seems that the file / copy API endpoint does not work with folders (although this limitation is not explicitly stated in the documentation).

Of course, I could add a second parent to the file, but obviously this is not a solution, since most of the time a copy of the folder is done for something with it without changing the original.

So how can I do this? Any idea?

+5
source share
1 answer

'copy' does not make much sense in a folder. The purpose of copying is to create a second file with the same media content as the first. Since there is no media content in the folder, the “copy” is not actually used.

, . * nix, "cp -R folder1 folder2" . , . , (, "ln -s folder1 folder2" ), .

+5

All Articles