diff --git a/packages/gooddata-sdk/src/gooddata_sdk/utils.py b/packages/gooddata-sdk/src/gooddata_sdk/utils.py index eb4ea8f32..0586cea9b 100644 --- a/packages/gooddata-sdk/src/gooddata_sdk/utils.py +++ b/packages/gooddata-sdk/src/gooddata_sdk/utils.py @@ -166,8 +166,7 @@ def get_sorted_yaml_files(folder: Path) -> list[Path]: def create_directory(path: Path) -> None: - if not os.path.exists(path): - os.makedirs(path) + os.makedirs(path, exist_ok=True) def recreate_directory(path: Path) -> None: