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

dvc list doesn't list contents of dvc-tracked folders #4107

Closed
dldx opened this issue Jun 24, 2020 · 0 comments · Fixed by #4108
Closed

dvc list doesn't list contents of dvc-tracked folders #4107

dldx opened this issue Jun 24, 2020 · 0 comments · Fixed by #4108
Assignees
Labels
feature request Requesting a new feature p0-critical Critical issue. Needs to be fixed ASAP.

Comments

@dldx
Copy link

dldx commented Jun 24, 2020

Bug Report

dvc list does not ever seem to list folders or subfolders within a dvc file. If there are dvc files tracking single files, then I do see the file in dvc list, but if I am tracking an entire folder, I do not get anything. DVC would need to download all the .dir files associated with dvc files, which it does not seem to be doing during dvc list

Please provide information about your setup

Output of dvc version:

 → dvc version  
DVC version: 1.0.1
Python version: 3.7.6
Platform: Linux-5.4.0-37-generic-x86_64-with-debian-bullseye-sid
Binary: False
Package: pip
Supported remotes: gs, hdfs, http, https, ssh
Cache: reflink - not supported, hardlink - supported, symlink - supported
Filesystem type (cache directory): ('ext4', '/dev/nvme0n1p7')
Repo: dvc, git
Filesystem type (workspace): ('ext4', '/dev/nvme0n1p7')

Additional Information (if any):

 → ls images/                                                                                                                                                                                       
Landsat8TOA  Landsat8TOA.dvc  PSScene4Band  PSScene4Band.dvc  Sentinel2TOA  Sentinel2TOA.dvc

→ dvc list -v -R . images/Landsat8TOA                                                                                                                                                              
2020-06-24 15:59:25,584 DEBUG: Creating external repo .@None
2020-06-24 15:59:25,584 DEBUG: erepo: git clone . to a temporary dir
2020-06-24 15:59:25,798 ERROR: failed to list '.' - The path 'images/Landsat8TOA' does not exist in the target repository 'ExternalRepo: '/tmp/tmpiiq_y618dvc-clone'' neither as a DVC output nor as a Git-tracked file.
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/durand/Stuff/Anaconda/envs/sats/lib/python3.7/site-packages/dvc/command/ls/__init__.py", line 35, in run
    dvc_only=self.args.dvc_only,
  File "/home/durand/Stuff/Anaconda/envs/sats/lib/python3.7/site-packages/dvc/repo/ls.py", line 40, in ls
    raise PathMissingError(path, repo, dvc_only=dvc_only)
dvc.exceptions.PathMissingError: The path 'images/Landsat8TOA' does not exist in the target repository 'ExternalRepo: '/tmp/tmpiiq_y618dvc-clone'' neither as a DVC output nor as a Git-tracked file.
------------------------------------------------------------

Cheers,
Durand

@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label Jun 24, 2020
@efiop efiop self-assigned this Jun 24, 2020
@efiop efiop added feature request Requesting a new feature p0-critical Critical issue. Needs to be fixed ASAP. labels Jun 24, 2020
@triage-new-issues triage-new-issues bot removed the triage Needs to be triaged label Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requesting a new feature p0-critical Critical issue. Needs to be fixed ASAP.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants