use explicit code to fix copy bug

This commit is contained in:
AlexandreKempf
2024-02-29 13:50:30 -05:00
committed by Dave Berenbaum
parent fd71434df5
commit 13325ea89b
+1 -1
View File
@@ -538,7 +538,7 @@ def unpack_if_dir(fs, path, props: dict[str, str], onerror: Optional[Callable] =
if "data" in unpacked:
for subpath in unpacked["data"]:
result["data"].update({subpath: {} | props}) # avoid shared reference
result["data"].update({subpath: props.copy()})
else:
result.update(unpacked)