小编sim*_*989的帖子

文件夹/ DRIVE API PyDRIVE中的文件列表

我无法更改文件夹并查看其中的内容.

drive = GoogleDrive(gauth)
file_list = drive.ListFile({'q': "'root' in parents and trashed=false"}).GetList()
for file1 in file_list:
print("File %s\n\n",(file1))
Run Code Online (Sandbox Code Playgroud)

我使用了以下代码:

file_list = drive.ListFile({'q': "'/test1' in parents and trashed=false"}).GetList()
Run Code Online (Sandbox Code Playgroud)

但它不起作用.有我使用的功能的文档:https://developers.google.com/drive/v3/reference/files/list

python drive pydrive

7
推荐指数
2
解决办法
7525
查看次数

标签 统计

drive ×1

pydrive ×1

python ×1