-
Notifications
You must be signed in to change notification settings - Fork 10
All special chars (like #) should be UrlEncoded #191
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
Comments
dir_path = "/SFDCCASES/SFDC######00592295/"
nc.files.makedirs(dir_path) Do not work, for some reason "#####" is missing and it creates "/SFDCCASES/SFDC" folder. |
I will fix this tomorrow and publish a new version. Looks like all ### should be UrlEncoded, my bad, missed that. |
Next time, if something doesn't work properly on the first or second try, feel free to create a discussion or issue, as my goal is to make using Nextcloud in Python intuitive. |
Everything is ok! As I said, I'm a new Pythonist, and I am willing to help with some examples. |
Fixes #191 . Looks like this error was introduced in `0.7.0` version, where I refactored all code. _Fixed and adjusted tests suite to detect this_ --------- Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Describe the bug
As per the example:
https://github.com/cloud-py-api/nc_py_api/blob/main/examples/as_client/files/upload.py
I'm trying to upload file to a specific location:
I tried the following methods:
I also tried removing the first '/' with main_nc_folder.removeprefix('/') - nothing
I tried using the FSNode:
If it is working, I'm getting filename on my /SFDC_CASES named: SFDC
I'm getting 404, 409
@bigcat88 , Please LMK what should I do.
I can also contribute to writing more docs if needed.
Steps/Code to Reproduce
Expected Results
File named: '12_26_2023_12_06PM_Logs (2)_parsed.7z', located at folder: /SFDC_CASES/SFDC######00592295/
Actual Results
(When it's working) I'm getting a file named SFDC (no extension at all)
Setup configuration
nc_py = 0.71
The text was updated successfully, but these errors were encountered: