summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/os.lua4
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