我正在尝试用新版本替换Team Drive文件夹中当前的文件。我有以下基本的python函数:
Warning: Error in source: functions.R:331:20: unexpected string constant
330: # replace smart curly quotes by normal quotes
331: essay <- gsub("[""]"
47: source
此功能对于普通的Google云端硬盘文件非常有效,但是对于Team Drive中的文件,我会收到404“找不到文件”错误。
我怀疑这与需要self.service.files().create(body=meta, media_body=media_body).execute()
有关,如此处所述:https://developers.google.com/drive/api/v3/enable-teamdrives
但是,如果我这样做:
supportTeamDrives
我收到错误self.service.files().create(body=meta, media_body=media_body,
supportTeamDrive=True).execute()
。而且,如果我尝试将其放入Got an unexpected keyword argument "supportTeamDrive"
字典中,则会收到相同的404错误。
为什么它不起作用,如何解决它以支持Team Drive?
答案 0 :(得分:1)
轻微错字-参数为public static void Main(String[] args)
,而不是supportsTeamDrives
。我也犯了这个错误:)