From f7dda38b107fae21bb52a632a829051ba667fdcd Mon Sep 17 00:00:00 2001 From: teleprint-me <77757836+teleprint-me@users.noreply.github.com> Date: Tue, 7 May 2024 21:56:07 -0400 Subject: [PATCH] note: Time of check to time of use --- convert-hf-to-gguf-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert-hf-to-gguf-update.py b/convert-hf-to-gguf-update.py index 01197bd7f..6c01bd169 100755 --- a/convert-hf-to-gguf-update.py +++ b/convert-hf-to-gguf-update.py @@ -109,7 +109,7 @@ for model in models: model_config_path = f"{model_name_or_path}/config.json" # check dir path - if not os.path.exists(model_name_or_path): + if not os.path.exists(model_name_or_path): # TOCTOU os.makedirs(model_name_or_path) else: logger.info(f"Directory {model_name_or_path} already exists - skipping")