MCPcopy Create free account
hub / github.com/chatmail/core / write_dict_to_dir

Function write_dict_to_dir

python/src/deltachat/testplugin.py:220–226  ·  view source on GitHub ↗
(dic, target_dir)

Source from the content-addressed store, hash-verified

218
219
220def write_dict_to_dir(dic, target_dir):
221 assert dic
222 for relpath, content in dic.items():
223 path = target_dir.joinpath(relpath)
224 if not path.parent.exists():
225 os.makedirs(path.parent)
226 path.write_bytes(content)
227
228
229@pytest.fixture()

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected