def extract_files(ubifs, out_path, perms = False): try: inodes = {} walk.index(ubifs, ubifs.master_node.root_lnum, ubifs.master_node.root_offs, inodes) for dent in inodes[1]['dent']: output.dents(ubifs, inodes, dent, out_path, perms) except Exception as e: import traceback ubifs.log.write('%s' % e) traceback.print_exc()
def extract_files(ubifs, out_path, perms=False): try: inodes = {} walk.index(ubifs, ubifs.master_node.root_lnum, ubifs.master_node.root_offs, inodes) for dent in inodes[1]['dent']: output.dents(ubifs, inodes, dent, out_path, perms) except Exception as e: import traceback ubifs.log.write('%s' % e) traceback.print_exc()
def extract_files(ubifs, out_path, perms=False): """Extract UBIFS contents to_path/ Arguments: Obj:ubifs -- UBIFS object. Str:out_path -- Path to extract contents to. """ try: inodes = {} walk.index(ubifs, ubifs.master_node.root_lnum, ubifs.master_node.root_offs, inodes) for dent in inodes[1]['dent']: output.dents(ubifs, inodes, dent, out_path, perms) except Exception, e: import traceback ubifs.log.write('%s' % e) traceback.print_exc()
def extract_files(ubifs, out_path, perms=False): """Extract UBIFS contents to_path/ Arguments: Obj:ubifs -- UBIFS object. Str:out_path -- Path to extract contents to. """ try: inodes = {} walk.index(ubifs, ubifs.master_node.root_lnum, ubifs.master_node.root_offs, inodes) for dent in inodes[1]['dent']: output.dents(ubifs, inodes, dent, out_path, perms) except Exception as e: import traceback ubifs.log.write('%s' % e) traceback.print_exc()