from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
authcookie = Office365('https://********.sharepoint.com/', username='dhruvpanchal@******.onmicrosoft.com', password='********').GetCookies()
site = Site('https://******.sharepoint.com/sites/BorakayInternal', version=Version.v2019, authcookie=authcookie)
folder = site.Folder('Shared Documents/This Folder')
folder.upload_folder('ConsolidatedTimesheet.xlsx')
在这段代码中,我得到一个错误:-
folder.upload_folder('ConsolidatedTimesheet.xlsx')
AttributeError: '_Folder' object has no attribute 'upload_folder'
谁能帮我解决这个问题
我注意到您在函数为“upload\u folder”时指定了一个文件作为参数。我检查shareplum的官方文件,应该是以下方法吗
相关问题 更多 >
编程相关推荐