import os, struct, sys def dump_fps4(name, name2, base_path): with open(name, 'rb') as f: head, tail = os.path.split(name) file_name = tail.split(".")[0] fps4 = f.read(4) if fps4 != b'FPS4': #print("Wrong file.") return file_number = struct.unpack('