def _c_sample_out_dir(targ, automal_dir):
# When we analyze samples, a output directory named after the MD5 hash of the sample is created and/or used for the samples specific exports, putput info, etc.
out_md5 = str(hashlib.md5(targ).hexdigest())
out_full_path = automal_dir+'/'+out_md5
if not os.path.exists(out_full_path):
os.makedirs(out_full_path)
out_file_Obj = open(out_full_path+'/Output.txt', 'a')
return (out_file_Obj, out_full_path, out_md5)
评论列表
文章目录