mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-24 06:57:41 -05:00
Another shot
Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
This commit is contained in:
parent
b9d2034948
commit
d983fab920
|
|
@ -546,10 +546,10 @@ def delete_old_files() -> None:
|
|||
"README",
|
||||
]
|
||||
|
||||
if OUTPUT_DIR.joinpath(".git").is_dir():
|
||||
shutil.rmtree(OUTPUT_DIR.joinpath(".git"))
|
||||
for file in OUTPUT_DIR.glob("*"):
|
||||
if not file.is_file():
|
||||
continue
|
||||
|
||||
for file in OUTPUT_DIR.glob("*.*"):
|
||||
if file.stem not in valid_files:
|
||||
file.unlink()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user