mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix tmp file names
This commit is contained in:
parent
0acdee15a0
commit
6bd6adb977
@ -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…
Reference in New Issue
Block a user