shareplum icon indicating copy to clipboard operation
shareplum copied to clipboard

Is it possible to download on local disk?

Open sim2511 opened this issue 2 years ago • 2 comments

Hello,

I would like to know if it's possible to download the file on my disk.

I'm already able to log on my site upload/delete . I use the folder.get_file('') to download but it does not load on my disk

Could you please help me ? Regards,

sim2511 avatar Sep 12 '22 14:09 sim2511

Hi @sim2511 ,

file = folder.get_file('')
with open("testdata.xlsx", "wb") as fh:
    fh.write(file)

JustSong avatar Nov 09 '22 04:11 JustSong

Hi Jason,

I have ask some information on other post.

Please ignore it, this code helps me to download the files from SP site.

patelmaulesh31 avatar Nov 25 '22 13:11 patelmaulesh31