0

是否有可能,以及如何使用谷歌驱动器 API 上传文件夹,保持目录层次结构?示例(本地):

root_dir\
--dir1\
----file
----file
----file
--dir2\
----file
--dir3\
----file
----file
4

1 回答 1

0

You simply have to use Drive Insert to create the folders, then Insert with media content to upload each file, specifying the appropriate Folder ID as the parent. Details and example code is here https://developers.google.com/drive/v2/reference/files/insert

于 2013-11-07T16:45:00.357 回答