mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: remove files from first pase if in second
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user