-
Notifications
You must be signed in to change notification settings - Fork 7
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
storage tree command #1435
storage tree command #1435
Conversation
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.
Fetching all directories may take a long time. It would be better to start outputting directories when they are ready. It requires limiting the number of simultaneous requests and supporting some kind of queue, so directories which are output first should be fetched first.
neuromation/cli/storage.py
Outdated
try: | ||
tree = await fetch_tree(root.client, uri, show_all) | ||
tree = dataclasses.replace(tree, name=str(path)) | ||
except (OSError, ResourceNotFound, IllegalArgumentError) as error: |
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.
I am not sure that IllegalArgumentError
is still needed. It was raised when you tried to get a listdir of a non-directory. Now it should raise OSError
or ResourceNotFound
.
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.
Ok, removed.
Currently, the pager (from |
No description provided.