def __init__(self):
        self.config             = Config()
        self.hd1_base_location  = self.config.hd1_location
        self.hd2_base_location  = self.config.hd2_location
        self.hd3_base_location  = self.config.hd3_location
        self.zip_folder         = os.path.join(os.getcwd(),"zip_folder")
        self.storage            = Storage()

        folder_delete_all(self.zip_folder)
        create_folder(self.zip_folder)
Esempio n. 2
0
 def __init__(self):
     self.use_es = False
     self.config = Config()
     self.status = Status()
     self.storage = Storage()
     self.hash_json = Hash_Json()
     self.events = Events_Log(self.config.hd2_status_location)
     self.events_elastic = Events_Log_Elastic()
     self.hash = None
     self.report_elastic = Report_Elastic()
     self.analysis_elastic = Analysis_Elastic()
     self.report_elastic.setup()
     self.analysis_elastic.setup()
     create_folder(self.storage.hd2_processed())
     create_folder(self.storage.hd2_not_processed())
 def write_to_file(self):
     create_folder(self.folder)
     json_save_file_pretty(self.data, self.get_file_path())
Esempio n. 4
0
 def save(self):
     create_folder(self.folder())
     json_save_file_pretty(self.data(), self.get_file_path())