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

(Feature Request) Create folders that do not exist #58

Closed
JetSetDoritos opened this issue Dec 30, 2021 · 1 comment
Closed

(Feature Request) Create folders that do not exist #58

JetSetDoritos opened this issue Dec 30, 2021 · 1 comment

Comments

@JetSetDoritos
Copy link

Example of current behavior:
When uploading you specify path=/dir1/dir2/dir3/file.txt
But in your pcloud you only have /dir1/dir2
Instead of creating dir3, currently pcloud just silently doesn't do the upload.

It would be nice if pycloud could create the missing directories when uploading a file. A different feature that could be easier to implement but still super useful is adding a method to create folders, so from the example I could create dir3 then upload the file.

My use case is I want to upload files from different days and organize them like /year/month/day

@tomgross
Copy link
Owner

tomgross commented Jan 2, 2022

Hi @JetSetDoritos

pCloud has the endpoint createfolderifnotexists, which you can call before uploading your files. It is supported by the pycloud library.

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

@tomgross tomgross closed this as completed Feb 2, 2022
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