From 07d1252fb099bba9d1b8deb8faa467b548437dc8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 14 Dec 2020 23:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=98=E6=A1=A3=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E4=BB=A3=E7=A0=81=E7=9A=84=E4=B8=80=E4=B8=AA=E5=B0=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index c9a43d5b..eafe8e4d 100644 --- a/main.lua +++ b/main.lua @@ -271,8 +271,10 @@ if fs.getInfo("data.dat")or fs.getInfo("key.dat")or fs.getInfo("settings.dat")th ["virtualkey.dat"]="conf/virtualkey", ["account.dat"]="conf/user", }do - fs.write(v,fs.read(k)) - fs.remove(k) + if fs.getInfo(k)then + fs.write(v,fs.read(k)) + fs.remove(k) + end end for _,name in next,fs.getDirectoryItems("")do if name:sub(-4)==".dat"then