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'
Может ли кто-нибудь помочь мне решить эту проблему?