dvc add dir
doesn't use new files/md5
folder in cache
#9645
Labels
A: data-management
Related to dvc add/checkout/commit/move/remove
bug
Did we break something?
p1-important
Important, aka current backlog of things to do
Bug Report
Description
With the new DVC 3 release, files should be cached to
.dvc/cache/files/md5
if I understand the release note correctly. But adding a folder results in the files still being stored to.dvc/cache/<random-2digit-hash>
.Reproduce
I run
dvc add <folder>
and it creates2e
,3a
,12
... folders in the.dvc/cache
folder instead of the new.dvc/cache/files/md5
location.Expected
Instead, shouldn't folder contents also be added to
.dvc/cache/files/md5
now? Otherwise, I run into issues with my remote when I want to retrieve the URL usingdvc.api.get_url()
. It returnss3://<bucket>/files/md5/<random-2digit-hash>/<random-30digit-hash>
and when I load that object I run intoKeyError: 'md5'
since it doesn't exist locally or on S3.Environment information
Output of
dvc doctor
:The text was updated successfully, but these errors were encountered: