import os, json, msgpack
def check_rails():
    path = "/var/lib/pterodactyl/volumes/8637552f-2ce1-4a2c-b74a-9ed953b4d762/world/mtr/minecraft/overworld/rails"
    for r, d, f in os.walk(path):
        for file in f:
            if not file.startswith("."):
                with open(os.path.join(r, file), "rb") as f_in:
                    unpacker = msgpack.Unpacker(f_in, raw=False)
                    for data in unpacker:
                        if data.get("shape") == "QUADRATIC":
                            print(json.dumps(data, indent=2))
                            return
check_rails()
