Skip to content
  • 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))
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment