mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-31 09:33:18 +01:00
Add folder path check
This commit is contained in:
parent
5a8b06e62c
commit
43a511094d
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ Es ist wieder Vereins-Stammtisch! Wie immer in allen ganzzahlig durch drei teilb
|
|||
filename = f"{year}-{month:02d}-{day:02d}_n39_stammtisch.md"
|
||||
file_path = os.path.join(folder_path, filename)
|
||||
|
||||
if not os.path.exists(folder_path):
|
||||
os.makedirs(folder_path)
|
||||
|
||||
with open(file_path, 'w') as file:
|
||||
file.write(markdown_content)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue