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
Got error message on an empty directory, shouldn't it show nothing? like ls command.
Error when list a empty path, strange behavior. Might relate to
dvc/dvc/repo/ls.py
Lines 40 to 41 in daf0745
Show nothing like ls command
Platform: Python 3.8.8 on macOS-10.16-x86_64-i386-64bit Supports: All remotes Cache types: https://error.dvc.org/no-dvc-cache Caches: local Remotes: None Workspace directory: apfs on /dev/disk3s1s1 Repo: dvc, git
Output of dvc doctor:
dvc doctor
$ dvc doctor
Additional Information (if any):
The text was updated successfully, but these errors were encountered:
We have already had a test about this.
dvc/tests/func/test_ls.py
Lines 167 to 173 in 68897aa
and it was introduced from #3246 at the beginning of dvc list command.
dvc list
dvc ls: not raise PathMissingError on empty dir.
9bdc9ba
fix iterative#5841
Bug Report
Got error message on an empty directory, shouldn't it show nothing? like ls command.
Description
Error when list a empty path, strange behavior.
Might relate to
dvc/dvc/repo/ls.py
Lines 40 to 41 in daf0745
Reproduce
Expected
Show nothing like ls command

Environment information
DVC version: 2.0.17+7e4851
Platform: Python 3.8.8 on macOS-10.16-x86_64-i386-64bit
Supports: All remotes
Cache types: https://error.dvc.org/no-dvc-cache
Caches: local
Remotes: None
Workspace directory: apfs on /dev/disk3s1s1
Repo: dvc, git
Output of
dvc doctor:$ dvc doctorAdditional Information (if any):
The text was updated successfully, but these errors were encountered: