mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2025-12-12 20:35:43 +01:00
Do not error if the directory to be created already exists
Resolves rdar://165785860.
This commit is contained in:
@@ -257,7 +257,7 @@ def copy_file(source: str, destination_dir: str, verbose: bool) -> None:
|
||||
"""
|
||||
Copies the file at `source` into `destination_dir`.
|
||||
"""
|
||||
os.makedirs(destination_dir)
|
||||
os.makedirs(destination_dir, exist_ok=True)
|
||||
check_call(['rsync', '-a', source, destination_dir], verbose=verbose)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user