排行文件使用rec后缀

This commit is contained in:
MrZ626
2020-12-14 16:49:36 +08:00
parent 020c87158c
commit 6e3961fe0f
3 changed files with 3 additions and 3 deletions

View File

@@ -267,7 +267,7 @@ if fs.getInfo("data.dat")then
fs.createDirectory("record")
for _,name in next,fs.getDirectoryItems("")do
if name:sub(-4)==".dat"then
fs.write("record/"..name,fs.read(name))
fs.write("record/"..name:sub(1,-4).."rec",fs.read(name))
fs.remove(name)
end
end