-
Couldn't load subscription status.
- Fork 1.3k
Labels
A: statusRelated to the dvc diff/list/statusRelated to the dvc diff/list/statusbugDid we break something?Did we break something?p2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less important
Description
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
Lines 40 to 41 in daf0745
| if path and not ret: | |
| raise PathMissingError(path, repo, dvc_only=dvc_only) |
Reproduce
- git init
- dvc init
- mkdir empty
- dvc list . empty
Expected
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):
pared
Metadata
Metadata
Assignees
Labels
A: statusRelated to the dvc diff/list/statusRelated to the dvc diff/list/statusbugDid we break something?Did we break something?p2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less important
