added logging statement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user