Skip to content

Commit

Permalink
cache: check-missing: add type, oid name and oid
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Aug 22, 2023
1 parent cae1b1b commit 736ca9a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dvc/repo/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ def onerror(_entry, _exc):
continue

if not fs.exists(path):
ret.append(os.path.join(*entry.key))
typ = "directory" if (entry.meta and entry.meta.isdir) else "file"
ret.append(
(
typ,
entry.hash_info.name,
entry.hash_info.value,
os.path.join(*entry.key),
)
)

return ret

0 comments on commit 736ca9a

Please sign in to comment.