diff options
| author | ruki <[email protected]> | 2022-10-31 22:59:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-31 22:59:24 +0800 |
| commit | c3c814952a9be7f11fec315d3c2782751e183df5 (patch) | |
| tree | 5cd3ef4acba77c01741d568fc2dcb872b7658144 | |
| parent | b3f903777bfde99b9d69aaa2183175d3babe289b (diff) | |
improve os.trycp
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index a5744c3b5..28eba4471 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -164,9 +164,9 @@ function sandbox_os.vln(srcpath, dstpath) end -- try to copy file or directory -function sandbox_os.trycp(srcpath, dstpath) +function sandbox_os.trycp(srcpath, dstpath, opt) assert(srcpath and dstpath) - return os.cp(vformat(srcpath), vformat(dstpath)) + return os.cp(vformat(srcpath), vformat(dstpath), opt) end -- try to move file or directory |
