-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add remote listdir #743
Add remote listdir #743
Conversation
(or attributes) in the main Transport class. Adding two methods to a RemoteData object to list files (with or without additional properties/attributes).
properly. Also extended the previous test for listdir to also check for files and not only for folders.
listdir_withattributes reducing by one the number of commands to run over ssh - now 'isdir' is obtained from the mode string)
Also improving a bit the exception handling to harmonize local and remote transports
I think that it would be better to discuss this in person. I had a look at it and, overall, it looks OK (without having the time to run it). However, I don't see (or I missed) where the listdir() and getfile() are tested. I also need more clarifications on how, overall, the remote transport is tested. Moreover, do we test somewhere the correctness of get_mode_string()? Maybe it is too much to test the latter. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
New commands 'verdi data remote [ls,cat,show]' and new functionality in the RemoteData python class to support this.
This also required some extension of the transport plugins.