diff options
| author | ruki <[email protected]> | 2021-12-08 23:26:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-12-08 23:26:11 +0800 |
| commit | bf56b9e48181726b6764ea47ea271fbde47a6f3c (patch) | |
| tree | 3f94fda3118ef1ef51f7f76326170edcc4269ed7 | |
| parent | 49de8dfa264e55943390b6cfbd2f407ef42e4313 (diff) | |
update tbox
| m--------- | core/src/tbox/tbox | 0 | ||||
| -rw-r--r-- | xmake/core/base/os.lua | 4 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox -Subproject 122a479e626ee3fdd7d6c1117ec7c19212a1e08 +Subproject f301f5eca1e909ffd6bcf688f14646d8226acfd 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 |
