1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

[1808] Add Folder If Not Exist

This commit is contained in:
David Sangrey 2024-04-28 15:34:02 -04:00
parent a6b46acc75
commit 960fb2dc82
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -35,6 +35,7 @@ def check_for_fdev_updates(silent: bool = False) -> None: # noqa: CCR001
for file, url in files_urls:
fdevid_file = pathlib.Path(config.respath_path / 'FDevIDs' / file)
fdevid_file.parent.mkdir(parents=True, exist_ok=True)
try:
with open(fdevid_file, newline='', encoding='utf-8') as f:
local_content = f.read()