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

Add remote listdir #743

Merged
merged 6 commits into from
Oct 9, 2017
Merged

Conversation

giovannipizzi
Copy link
Member

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.

(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
@szoupanos
Copy link
Contributor

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.

@giovannipizzi
Copy link
Member Author

get_mode_string is taken from the core python 3.3 library as stated in the docstring, so I would be pretty confident that it is correct...

Copy link
Contributor

@szoupanos szoupanos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@szoupanos szoupanos merged commit 4009b25 into aiidateam:develop Oct 9, 2017
@giovannipizzi giovannipizzi deleted the add_remote_listdir branch December 13, 2017 11:39
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

Successfully merging this pull request may close these issues.

2 participants