Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help on file download from Pcloud to Local Directory. #65

Closed
monish0612 opened this issue Nov 10, 2022 · 4 comments
Closed

Need help on file download from Pcloud to Local Directory. #65

monish0612 opened this issue Nov 10, 2022 · 4 comments

Comments

@monish0612
Copy link

monish0612 commented Nov 10, 2022

I have uploaded a file to Pcloud. But this time, there is a requirement to download the uploaded file or download the already existing file from cloud. But I am unable to do so. So I have added the code snippet. Can you please provide a solution for it?

Code Snippet:

pc = PyCloud('email id', 'password', endpoint='eapi')

listr = pc.listfolder(folderid=0)

pc.downloadfile(url="File Download Link", path="Local Directory")

I can pay you for the solution.

@monish0612
Copy link
Author

Any update on this request?

@tomgross
Copy link
Owner

tomgross commented Nov 14, 2022

Hi @monish0612
I answered this question already in #60 (comment).
Maybe the example from the tests is helpful: https://github.com/tomgross/pycloud/blob/1.0/src/pcloud/tests/test_integration.py#L43

I offer implementation services. Please use my email for inquirys.

If you use and ❤️ my software, consider buying me a coffee ☕ https://www.paypal.com/paypalme/tomgross42

@tomgross tomgross closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2022
@monish0612
Copy link
Author

monish0612 commented Nov 15, 2022 via email

@monish0612
Copy link
Author

listr = pc.listfolder(folderid=4553149281) fd = pc.file_open(path=f"/ExpenseDB/expense.db", flags=O_CREAT)["fd"] result = pc.file_read(fd=fd, count=140000) resp = pc.downloadfile(url ="https://my.pcloud.com/#page=filemanager&folder=4553149281&tpl=folderlist" , folderid=4553149281 )

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

No branches or pull requests

2 participants