summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-02 23:15:33 +0800
committerruki <[email protected]>2022-09-02 23:15:33 +0800
commite87439af20619ccee1212afa6f6c89011639f7ea (patch)
tree3f0f2a3cf4c53cbf9dee39a7aa6fb31ff9997995
parentb12114080a48ae9817228e57064ad51914402f56 (diff)
remove some comments
-rw-r--r--xmake/core/base/os.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 8f57b4a8e..cd17fed99 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -53,8 +53,6 @@ os.SYSERR_NOT_FILEDIR = 2
-- copy single file or directory
function os._cp(src, dst, rootdir, opt)
-
- -- check
assert(src and dst)
-- reserve the source directory structure if opt.rootdir is given
@@ -111,15 +109,11 @@ function os._cp(src, dst, rootdir, opt)
else
return false, string.format("cannot copy file %s, file not found!", src)
end
-
- -- ok
return true
end
-- move single file or directory
function os._mv(src, dst)
-
- -- check
assert(src and dst)
-- exists file or directory?
@@ -138,8 +132,6 @@ function os._mv(src, dst)
else
return false, string.format("cannot move %s to %s, file %s not found!", src, dst, os.strerror())
end
-
- -- ok
return true
end