-
Notifications
You must be signed in to change notification settings - Fork 52
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
method info() not working #40
Comments
@avocadochicken, You can help:
$ git clone https://github.com/CloudPolis/webdav-client-cpp.git
$ cd webdav-client-cpp
$ cmake -H. -B_builds -DBUILD_EXAMPLES=ON -DWDC_VERBOSE=ON -DCMAKE_INSTALL_PREFIX=install
$ cmake --build _builds --target install
$ export WEBDAV_HOSTNAME =<your_webdav_hostname>
$ export WEBDAV_USERNAME =<your_webdav_username>
$ export WEBDAV_PASSWORD =<your_webdav_password>
$ cd install/bin
$ ./cli info <your_file_path>
|
I deploy I tried without setting $ export WEBDAV_HOSTNAME=http://ec2-54-205-59-139.compute-1.amazonaws.com/remote.php/webdav Then I tried with it 🎊 $ export WEBDAV_HOSTNAME=http://ec2-54-205-59-139.compute-1.amazonaws.com
$ export WEBDAV_ROOT=/remote.php/webdav You can try use that code: std::map<std::string, std::string> options =
{
{"webdav_hostname", "your_webdav_hostname"},
{"webdav_username", "your_webdav_username"},
{"webdav_password", "your_webdav_password"},
{"webdav_root", "your_webdav_root"} // in my case: /remote.php/webdav
}; |
@rusdevops : Sorry for responding this late. I was on vacations and then my PC broke down, etc... Please add line: Running cli info/list .. and other example commands show a valid response <d:getlastmodified etc... are present. But there is no response available through client->info(....) ! Here is an example code (just if someone needs it in the future, as it gives an idea where to find the other libs....):
Problem is: |
@avocadochicken, to work out of the box, you must use CMake for your projects as well. |
Please mind my last post and your second.
I updated the
and compiled with CMAKE. Mind your picture in your second post. It has the same issue! I am expecting info.size() = 1 and valid info inside
I guess something goes wrong with pugixml. |
Further digging:
expression is false in my case. This is why
Seems fishy... |
Some debug output (I added) of inside
|
@avocadochicken I find this problem, too. I have another question: if I get this kind of information, How can I get icon information. Because I want to show file icons in my application. not just file name,date, and type. |
@rusdevops @avocadochicken When I use the info funciton: |
@WanpengShao: Please format your text and be more precise about the things you post. For instance, tell which file you are refering to if you post some source. Please help the person you are asking in order to get help. You can switch above your written text from 'Write' to 'Preview' in order to ensure you desired markdown output. I guess you refer to -> The problem lies between lines 442 and 452. You could debug it line by line. Print output of each operation to stdout for instance. You can also post it here, then I might be able to help you. To be honest: I moved on and I am busy with other stuff. I used this library to upload files and check existence of them at my remote resource. Doing so I just realised a misbehaving info() function, but I do not needed the correct integration of such a function for my project. |
Returned 'dict_t' from Client::info() has always size zero.
I am connecting to an owncload server and the rest seems to work (I can create directories and upload files).
The text was updated successfully, but these errors were encountered: