From bf56b9e48181726b6764ea47ea271fbde47a6f3c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 8 Dec 2021 23:26:11 +0800 Subject: update tbox --- core/src/tbox/tbox | 2 +- xmake/core/base/os.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox index 122a479e6..f301f5eca 160000 --- a/core/src/tbox/tbox +++ b/core/src/tbox/tbox @@ -1 +1 @@ -Subproject commit 122a479e626ee3fdd7d6c1117ec7c19212a1e087 +Subproject commit f301f5eca1e909ffd6bcf688f14646d8226acfd9 diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index a4fdb570e..812451afd 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -143,18 +143,21 @@ end -- remove single file or directory function os._rm(filedir) + print("rm", filedir) -- check assert(filedir) -- is file or link? if os.isfile(filedir) or os.islink(filedir) then + print("rmfile") -- remove file if not os.rmfile(filedir) then return false, string.format("cannot remove file %s %s", filedir, os.strerror()) end -- is directory? elseif os.isdir(filedir) then + print("rmdir") -- remove directory if not os.rmdir(filedir) then return false, string.format("cannot remove directory %s %s", filedir, os.strerror()) @@ -450,6 +453,7 @@ end -- remove files or directories function os.rm(filepath) + print("rmssss", filepath) -- check arguments if not filepath then -- cgit v1.3.1