Files
uv-k5-firmware-custom/genJson.py
wu58430 8e19866189 129
2024-06-09 20:27:26 +08:00

11 lines
340 B
Python

import os
import json
list = []
for filename in os.listdir(r'.'):
if len(filename) >= 5 and filename[-5] != 'm' and filename[-4] == '.' and filename[-3] == 'b' and filename[-2] == 'i' and filename[-1] == 'n':
list.append(filename)
print(json.dumps(list))
with open("version.json","w") as file:
file.write(json.dumps(list))