-
change function:
def save_qcow2_info_to_file(file): if os.path.isfile(OUTPUT_FOLDER + os.path.basename(file) + ".json"): print("File: " + file + " already processed") return print("Processing file: " + file) # registra el temps actual start_time = time.time() # guarda les aplicacions en un fitxer de text with open(OUTPUT_FOLDER + file.replace("/","__") + ".json", "w") as f: f.write(json.dumps(get_json_apps(get_applications(file),id=file))) print(file+"--- %s seconds ---" % (time.time() - start_time))
Please register or sign in to comment