From b8ef04349bfa1441d4e4aa8e8ff138da2f7edf39 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 19 Mar 2018 22:58:30 +0800 Subject: improve os.tmpdir --- xmake/core/base/os.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 96bf998dc..70af9c6bb 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -477,10 +477,6 @@ function os.tmpdir() -- ensure this directory exist and remove the previous directory if not os.isdir(tmpdir) then os.mkdir(tmpdir) - local predir = path.join(os._tmpdir(), subdir, os.date("%y%m%d", os.time() - 24 * 60 * 60)) - if os.isdir(predir) then - os.rmdir(predir) - end end return tmpdir end -- cgit v1.3.1