added logging statement

This commit is contained in:
Marcel Gansfusz
2025-10-30 15:48:51 +01:00
parent 6bd75bf93f
commit a37206d6a4

View File

@@ -735,7 +735,7 @@ def make_savepath(
ftype: str,
) -> os.PathLike:
"""Generates the path, the file is saved to after the upload process is finished. It creates all nessecery directories."""
info(f"Started to make Savepath for {fname} in {lva} for prof {prof}.")
info(f"Started to make Savepath for '{fname}' in '{lva}' with prof '{prof}'.")
lv = get_lvpath(lva)
lvpath = Path(lv[1])
pf = get_profpath(prof, lv[0])
@@ -769,6 +769,7 @@ def make_savepath(
destpath = savepath / file
i = 0
while destpath.is_file():
info(f"{destpath} already exists.")
file = filename + f"_{i}." + ftype
i += 1
destpath = savepath / file