在googledriveapi python中下载完整的文件夹层次结构

2024-06-10 13:16:49 发布

您现在位置:Python中文网/ 问答频道 /正文

如何使用pythongoogledriveapi下载完整的文件夹层次结构。是不是我要查询文件夹中的每个文件然后下载。但这样做,文件夹层次结构将丢失。任何方式都可以让它以适当的方式。谢谢


Tags: 文件文件夹层次结构方式pythongoogledriveapi
2条回答

查询的默认最大结果为100。必须使用pageToken/nextPageToken来重复。 见Python Google Drive API - list the entire drive file tree

你可以使用googlegam实现这一点。在

gam all users show filelist >filelist.csv
gam all users show filetree >filetree.csv

我从这个网站得到了所有的答案。我发现它很有用。 https://github.com/jay0lee/GAM/wiki

相关问题 更多 >