added create folder
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -6s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -6s
This commit is contained in:
@@ -20,6 +20,8 @@ default_csv = str("ausgaben_month/" + check_csv_file_create_new())
|
|||||||
|
|
||||||
def create_csv_file(csv_path=default_csv):
|
def create_csv_file(csv_path=default_csv):
|
||||||
if not os.path.exists(csv_path):
|
if not os.path.exists(csv_path):
|
||||||
|
directory_csv = os.path.dirname(default_csv)
|
||||||
|
os.makedirs(directory_csv, exist_ok=True)
|
||||||
print(csv_path, "wird angelegt !!")
|
print(csv_path, "wird angelegt !!")
|
||||||
to_write_header = ["datum", "ausgaben", "beschreibung"]
|
to_write_header = ["datum", "ausgaben", "beschreibung"]
|
||||||
with open(csv_path, "w") as wfile:
|
with open(csv_path, "w") as wfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user