diff options
author | George Burgess IV <gbiv@google.com> | 2020-10-09 12:32:18 -0700 |
---|---|---|
committer | George Burgess <gbiv@chromium.org> | 2020-10-09 20:09:47 +0000 |
commit | 2159420ccfca45fe94e5a87483d2889fe323029d (patch) | |
tree | 34a2edd4698e0e4ecd996b5a5c84e01af170fe53 | |
parent | fd598ff8539e2d99755c52d15159864686092976 (diff) | |
download | toolchain-utils-2159420ccfca45fe94e5a87483d2889fe323029d.tar.gz |
llvm_tools: add exist_ok=True to state dir creation
we just want to make sure that the state file directory exists here.
BUG=None
TEST=Ran
Change-Id: I563821a357e2863c0a71570cfcb7319401a03778
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2460837
Tested-by: George Burgess <gbiv@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
-rwxr-xr-x | llvm_tools/upload_lexan_crashes_to_forcey.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_tools/upload_lexan_crashes_to_forcey.py b/llvm_tools/upload_lexan_crashes_to_forcey.py index 216511fc..b93f51a7 100755 --- a/llvm_tools/upload_lexan_crashes_to_forcey.py +++ b/llvm_tools/upload_lexan_crashes_to_forcey.py @@ -227,7 +227,7 @@ def main(argv: List[str]): state_file = opts.state_file last_date_str = opts.last_date - os.makedirs(os.path.dirname(state_file), 0o755) + os.makedirs(os.path.dirname(state_file), 0o755, exist_ok=True) if last_date_str is None: with open(state_file, encoding='utf-8') as f: |