mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-05 07:50:23 +08:00
prevent unwanted clearing
This commit is contained in:
10
extract.py
10
extract.py
@@ -19,9 +19,13 @@ def main():
|
|||||||
shutil.rmtree("temp")
|
shutil.rmtree("temp")
|
||||||
|
|
||||||
if os.path.exists("output") and len(os.listdir("output")) > 0:
|
if os.path.exists("output") and len(os.listdir("output")) > 0:
|
||||||
print("The output folder will be cleared when the program runs, press a key to continue or close this window")
|
print("The output folder needs to be cleared, continue ? [Y/N]")
|
||||||
os.system("pause >nul")
|
select = input(">")
|
||||||
shutil.rmtree("output")
|
if select.lower() == "y":
|
||||||
|
shutil.rmtree("output")
|
||||||
|
else:
|
||||||
|
print("Aborting")
|
||||||
|
exit()
|
||||||
|
|
||||||
# Get all files to process
|
# Get all files to process
|
||||||
hdiff_files = [f for f in os.listdir("audio") if f.endswith(".pck") and os.path.exists(f"patch/{f}.hdiff")]
|
hdiff_files = [f for f in os.listdir("audio") if f.endswith(".pck") and os.path.exists(f"patch/{f}.hdiff")]
|
||||||
|
|||||||
Reference in New Issue
Block a user