Skip to content

Commit 6a837ae

Browse files
committed
Do not error if the directory to be created already exists
Resolves rdar://165785860.
1 parent ca9ef8c commit 6a837ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/build-script-helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def copy_file(source: str, destination_dir: str, verbose: bool) -> None:
257257
"""
258258
Copies the file at `source` into `destination_dir`.
259259
"""
260-
os.makedirs(destination_dir)
260+
os.makedirs(destination_dir, exist_ok=True)
261261
check_call(['rsync', '-a', source, destination_dir], verbose=verbose)
262262

263263

0 commit comments

Comments
 (0)