mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Fix tmp file names
This commit is contained in:
parent
0acdee15a0
commit
6bd6adb977
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ class OutputDirectory:
|
||||||
|
|
||||||
def _tmp_path(self, base: Path, suffix_length: int) -> Path:
|
def _tmp_path(self, base: Path, suffix_length: int) -> Path:
|
||||||
prefix = "" if base.name.startswith(".") else "."
|
prefix = "" if base.name.startswith(".") else "."
|
||||||
suffix = random.choices(SUFFIX_CHARS, k=suffix_length)
|
suffix = "".join(random.choices(SUFFIX_CHARS, k=suffix_length))
|
||||||
name = f"{prefix}{base.name}.tmp.{suffix}"
|
name = f"{prefix}{base.name}.tmp.{suffix}"
|
||||||
return base.parent / name
|
return base.parent / name
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue