loader: don't forget to set meta.isdir

Leftover from #8273

Fixes #8300
This commit is contained in:
Ruslan Kuprieiev
2022-09-15 22:53:48 +03:00
parent 477a6e177f
commit 3cbf319e0d
+2
View File
@@ -71,6 +71,8 @@ class StageLoader(Mapping):
item.meta = Meta.from_dict(info)
hash_value = getattr(item.meta, item.hash_name, None)
item.hash_info = HashInfo(item.hash_name, hash_value)
if item.hash_info and item.hash_info.isdir:
item.meta.isdir = True
@classmethod
def load_stage(cls, dvcfile, name, stage_data, lock_data=None):