Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Is it possible to download on local disk? #195

Open
sim2511 opened this issue Sep 12, 2022 · 2 comments
Open

Is it possible to download on local disk? #195

sim2511 opened this issue Sep 12, 2022 · 2 comments

Comments

@sim2511
Copy link

sim2511 commented Sep 12, 2022

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,

@JustSong
Copy link

JustSong commented Nov 9, 2022

Hi @sim2511 ,

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

@patelmaulesh31
Copy link

Hi Jason,

I have ask some information on other post.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants