-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dbt): skip copying the partial parse file if it exists in the tar…
…get (#17214) ## Summary & Motivation As the title. From https://docs.python.org/3/library/shutil.html#shutil.copy: > Copies the file src to the file or directory dst. src and dst should be path-like objects or strings. If dst specifies a directory, the file will be copied into dst using the base filename from src. If dst specifies a file that already exists, it will be replaced. Returns the path to the newly created file. But in windows, this information is false, as an error pops up if the file at the destination already exists. In that case, skip the copy. ## How I Tested These Changes pytest, add assertion that partial parse file is not overwritten if it already exists
- Loading branch information
1 parent
6f998ba
commit 70514f3
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters