diff options
| author | ruki <[email protected]> | 2020-02-12 00:17:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-11 19:43:22 +0800 |
| commit | bbebeccae7034f75c246e8ab05c4d03f236cf096 (patch) | |
| tree | a4c760b18327286406f936588200dac70e42c59a /xmake/core/sandbox/modules/os.lua | |
| parent | a192c845ab453e7d0da1a4a7cbaa9acb834746d5 (diff) | |
improve tmpdir
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index b69c68f25..f6ce8e6b4 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -262,13 +262,13 @@ function sandbox_os.curdir() end -- get the temporary directory -function sandbox_os.tmpdir() - return assert(os.tmpdir()) +function sandbox_os.tmpdir(opt) + return assert(os.tmpdir(opt)) end -- get the temporary file -function sandbox_os.tmpfile(key) - return assert(os.tmpfile(key)) +function sandbox_os.tmpfile(key, opt) + return assert(os.tmpfile(key, opt)) end -- get the script directory |
