Compare commits
6 Commits
7f75afcbc5
...
6506017743
| Author | SHA1 | Date | |
|---|---|---|---|
| 6506017743 | |||
| 130e456d18 | |||
| 3fc23feae3 | |||
| 7c07257317 | |||
| 18feb50d7f | |||
| b937ad45d4 |
@ -62,10 +62,7 @@ def make_file_path(dir_path: Path,
|
||||
Create a file_path for the given directory using the
|
||||
given file_suffix and ID generator function.
|
||||
"""
|
||||
file_path = dir_path / f"{next_fid():04d}{file_suffix}"
|
||||
while file_path.exists():
|
||||
file_path = dir_path / f"{next_fid():04d}{file_suffix}"
|
||||
return file_path
|
||||
return dir_path / f"{next_fid():04d}{file_suffix}"
|
||||
|
||||
|
||||
def write_dir(dir_path: Path,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user