file check added

This commit is contained in:
=
2025-09-01 22:10:00 -04:00
parent 3ae730361b
commit b3a67b1b93
+16 -2
View File
@@ -303,7 +303,15 @@ def menu_prepare_to_enforce():
del data del data
del exe1 del exe1
del executionhist_policy1 del executionhist_policy1
os.remove("chunkinator.json")
if os.path.exists("chunkinator.json"):
os.remove("chunkinator.json")
print(f"File 'chunkinator.json' has been deleted.")
else:
print(f"File 'chunkinator.json' does not exist.")
gc.collect() gc.collect()
if not os.path.exists(f"parquet\\execution_history_{second_policy}.parquet"): if not os.path.exists(f"parquet\\execution_history_{second_policy}.parquet"):
@@ -322,7 +330,13 @@ def menu_prepare_to_enforce():
del executionhist_policy2 del executionhist_policy2
del data2 del data2
del exe2 del exe2
os.remove("chunkinator.json")
if os.path.exists("chunkinator.json"):
os.remove("chunkinator.json")
print(f"File 'chunkinator.json' has been deleted.")
else:
print(f"File 'chunkinator.json' does not exist.")
gc.collect() gc.collect()
if not os.path.exists(f"parquet\\combined_hashlist_{first_policy}_{second_policy}.parquet"): if not os.path.exists(f"parquet\\combined_hashlist_{first_policy}_{second_policy}.parquet"):