From a991162428a83c6c64a276c89cfcc8108367a11f Mon Sep 17 00:00:00 2001 From: TRF2SGM Date: Mon, 3 May 2021 12:09:30 +0200 Subject: [PATCH] #136 path valid if error code 17 by os.rename --- z.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z.lua b/z.lua index b2479cd..ca912ef 100755 --- a/z.lua +++ b/z.lua @@ -580,7 +580,7 @@ function os.path.exists(name) end local ok, err, code = os.rename(name, name) if not ok then - if code == 13 then + if code == 13 or code == 17 then return true elseif code == 30 then local f = io.open(name,"r")