-
Notifications
You must be signed in to change notification settings - Fork 33
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
Not able to use get_directory_contents #10
Comments
@jbd: The
This method is unfortunately not flexible enough to support either an absolute path with |
Hi, thank you for your answer. I guess my initial message was not clear enough. I've got no problem with the directory_path subtelties but I don't seem to be able to use get_directory_contents correctly. Here is a full example, I hope it will be easier to follow.
I've got no problem to make get_directory_contents to work with this code :
See https://gist.github.com/jbd/3504a32fdc3be782d774198e55711ea4 for the full usable program
This corresponds to default value of the "limit" parameter. The rest of the tests looks OK:
But if I use another directory with some contents, api_response.children is None :
If I specify an arbitrary limit in the get_directory_contents call, it works until a certain size:
The sweet spot is limit=318:
What could explain this behavior ? The equivalent curl commands with the same user are working fine.
|
I've got a directory with a '\303' C escape code in it. This is a problem, but I guess this should not make get_directory_contents working incorrectly (or it should raise an exception) and silently fails. Here is a reproducer:
The curl command is working:
|
In the case of the "weird_directory" with the embedded non-printable char, the response.data object is not considered as a valid json here: isilon_sdk_python/isi_sdk/api_client.py Line 253 in 1f0fb83
The fact that it cannot be transformed to json seems like the kwargs cannot be build in deserialize_object: isilon_sdk_python/isi_sdk/api_client.py Line 669 in 1f0fb83
|
Hello,
I'm trying to list a directory with 718 directories in it using get_directory_content API function, but I can't make it work.
If I don't use a limit option, or if I use a limit option higher than the number of directories I've got, I can't
get anything from the function. AM I misusing something ?
And even with limit=1, I'm not able to resume the listing after with something like that:
Here is a usable gist: https://gist.github.com/jbd/8a5f691e75509dc5397243a105dc61fa
The text was updated successfully, but these errors were encountered: