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

list: add support for tracked directories #4108

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jun 24, 2020

Listing a git directory (so we don't have to have access to the remote)

$ dvc list [email protected]:iterative/private.git                                                   
.gitignore                                                                                        
dataset                                                                                           
dataset.dvc                                                                                       
README.md                                                                                         
images                                                                                            
images.dvc                                                                                        

but when we try to list something that requires the remote:

$ dvc list [email protected]:iterative/private.git images                                            
ERROR: unexpected error - An error occurred (403) when calling the HeadObject operation: Forbidden
                                                                                                  
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!           

and when we have the creds:

$ dvc list [email protected]:iterative/private.git images                                            
cats
dogs
birds

Fixes #4107
Fixes #3394

  • ❗ I have followed the Contributing to DVC checklist.

  • 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@efiop efiop changed the title list: add support for tracked directories [WIP] list: add support for tracked directories Jun 24, 2020
@efiop efiop force-pushed the fix-4107 branch 3 times, most recently from 5934648 to 0e94c40 Compare June 25, 2020 00:12
@dldx
Copy link

dldx commented Jun 25, 2020

Can confirm that this does fix #4107! Thank you!

@efiop efiop changed the title [WIP] list: add support for tracked directories list: add support for tracked directories Jun 25, 2020
@efiop efiop requested a review from pmrowla June 25, 2020 00:15
efiop added 2 commits June 25, 2020 04:31
This allows us to save time by not loading directories that we won't be
using anyway. This also allows us to list directories for which we don't
need the access to remote.
@efiop efiop merged commit 59a143e into iterative:master Jun 25, 2020
@efiop
Copy link
Contributor Author

efiop commented Jun 25, 2020

For the record: not adding docs because it is an expected behavior.

@efiop efiop deleted the fix-4107 branch June 25, 2020 13:13
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.

dvc list doesn't list contents of dvc-tracked folders list: cannot list content of the data folder
3 participants