我无法更改文件夹并查看其中的内容.
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