Beispiel #1
0
 def download_file(self, relative_url):
     """
     Downloads as file by URL
     :param relative_url:
     :return:
     """
     response = File.open_binary(self.context, relative_url)
     return response.content
Beispiel #2
0
def download_file(context):
    response = File.open_binary(context, "/Shared Documents/SharePoint User Guide.docx")
    with open("./data/SharePoint User Guide.docx", "wb") as local_file:
        local_file.write(response.content)