Skip to content

Commit 3f5f4d8

Browse files
aryanchalotraaslimreaper35
authored andcommitted
fix(tests): propagate exist_ok in write_file_tree
Propagate the exist_ok parameter through recursive calls in write_file_tree to prevent failures when directories already exist. Signed-off-by: Aryan Chalotra <aryanchalotra96@gmail.com>
1 parent c2a50e6 commit 3f5f4d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/common_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def write_file_tree(tree_def: dict, rooted_at: StrPath, exist_ok: bool = False)
3232
entry_path.write_text(value)
3333
else:
3434
entry_path.mkdir(exist_ok=exist_ok)
35-
write_file_tree(value, entry_path)
35+
write_file_tree(value, entry_path, exist_ok=exist_ok)

0 commit comments

Comments
 (0)