feature: remove files from first pase if in second

This commit is contained in:
Dobin
2024-02-18 22:50:47 +00:00
parent 9b71cdd481
commit 31737f2845
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -4,6 +4,7 @@ from capstone import Cs, CS_ARCH_X86, CS_MODE_64
from model import *
from r2helper import r2_disas
from helper import delete_all_files_in_directory
class Observer():
@@ -30,6 +31,12 @@ class Observer():
with open("logs/{}-{}".format(self.idx, filename), "w") as f:
f.write(data)
def clean_files(self):
delete_all_files_in_directory("logs/")
self.idx = 0
self.logs = []
def __str__(self):
s = "<todo>"
return s