490477db61 2024-02-03 1: package.path = [[.\lua_lib\?.lua;]] .. package.path
490477db61 2024-02-03 2: package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
490477db61 2024-02-03 3: local 字集码互转库 = require("u8_to_a")
490477db61 2024-02-03 4: local u8 = 字集码互转库.u8_to_a
490477db61 2024-02-03 5: local f = require(u8("常用库"))
13cd0daf30 2024-02-03 6: local 简文件库 = require("lfs")
490477db61 2024-02-03 7: local d_5 = {}
13cd0daf30 2024-02-03 8: --~ 目对
13cd0daf30 2024-02-03 9: function d_5.残局改名(o1)
13cd0daf30 2024-02-03 10: local k1_9
3a58d8f06c 2024-02-03 11: --~ 文件排
13cd0daf30 2024-02-03 12: k1_9 = f.历文(o1.文件目, 简文件库.dir)
3a58d8f06c 2024-02-03 13: k1_9 = f.历排(k1_9, f.全筛文, "%.lua$")
0893c58ef4 2024-02-03 14: --~ k1_9 = f.历排(k1_9, f.文件名转文件路, o1.文件目)
0893c58ef4 2024-02-03 15: k1_9 = f.历排(k1_9, f.加前缀, o1.文件目)
0893c58ef4 2024-02-03 16: --~ print(k1_9[2])
3a58d8f06c 2024-02-03 17: k1_9 = f.历排(k1_9, f.读文件)
3a58d8f06c 2024-02-03 18:
13cd0daf30 2024-02-03 19: end
9cdbbb717e 2024-02-03 20: d_5.目对 = {
13cd0daf30 2024-02-03 21: ["文件目"] = "../single/"
13cd0daf30 2024-02-03 22: , ["数据库路"] = [[D:\install\YGOPro\cards.cdb]]
9cdbbb717e 2024-02-03 23: }
3a58d8f06c 2024-02-03 24: for o1, o2 in pairs(d_5.目对) do
3a58d8f06c 2024-02-03 25: d_5.目对[o1] = f.操类(o2, "string", u8)
13cd0daf30 2024-02-03 26: end
13cd0daf30 2024-02-03 27: d_5.残局改名(d_5.目对)