exit(0) if args.reproduce: print(reproduce_flags(args.reproduce)) exit(0) if args.linebyline: analyze_linebyline(args.linebyline) exit(0) if args.zip: make_zip(args.zip); exit(0) if not os.path.exists(args.exe): raise RuntimeError("{} does not exist".format(args.exe)) # Find the bulk_extractor version and add it to the outdir args.outdir += "-"+bulk_extractor_reader.be_version(args.exe) corp = os.getenv("DOMEX_CORP") if not corp: corp = corp_default drives = corp + nps_drives_path if args.fast: args.image = fast_infile if args.extra: args.extra += ' ' else: args.extra = '' args.extra += '-G 65536' if args.full: args.image = full_infile
except FileExistsError: pass if not args.outdir: print("--datadir requires that outdir be specified") exit(0) for fn in glob.glob(os.path.join(args.datadir,"*")): args.image = fn args.outdir = os.path.join(args.outdir,os.path.basename(fn)) run_outdir() exit(0) # Find the bulk_extractor version and add it to the outdir if args.outdir==None: args.outdir="regress" args.outdir += "-"+bulk_extractor_reader.be_version(args.exe) if args.datacheck: datacheck() ; exit(0) if args.datacheck_checkreport: datacheck_checkreport(args.datacheck_checkreport); exit(0) if args.fast: args.image = image_path(FAST_INFILE) if args.extra: args.extra += ' ' else: args.extra = ''