Create temp folder first before touching if it doesn't exist

Fixes #203
This commit is contained in:
DominikDoom
2023-07-22 20:46:10 +02:00
parent 94823b871c
commit 1cac893e63

View File

@@ -7,6 +7,8 @@ from scripts.shared_paths import EXT_PATH, STATIC_TEMP_PATH, TEMP_PATH
# Set up our hash cache
known_hashes_file = TEMP_PATH.joinpath("known_lora_hashes.txt")
if not TEMP_PATH.exists():
TEMP_PATH.mkdir()
known_hashes_file.touch()
file_needs_update = False