fix file exists issue in create_folder_if_not_exist (#2731)

This commit is contained in:
Shuchang Zheng
2025-06-17 21:20:38 -07:00
committed by GitHub
parent 3e3522fc4c
commit 70f5106ea2

View File

@@ -238,9 +238,7 @@ def calculate_sha256_for_file(file_path: str) -> str:
def create_folder_if_not_exist(dir: str) -> None:
path = Path(dir)
if path.exists():
return
path.mkdir(parents=True)
path.mkdir(parents=True, exist_ok=True)
def get_skyvern_temp_dir() -> str: