summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-18 14:59:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-18 14:59:33 +0800
commitb1eb4fd16c62c2c9b12375f6e50ed5dd4df6ed46 (patch)
treef8843d708802723d10cf005444693156d37aac76
parent0b5b56592eaa331b9331e7e392cd80a96f9f8c42 (diff)
downloadlua-language-server-b1eb4fd16c62c2c9b12375f6e50ed5dd4df6ed46.zip
update fs.copy_file
-rw-r--r--script/fs-utility.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/fs-utility.lua b/script/fs-utility.lua
index cff375dd..2f5d404e 100644
--- a/script/fs-utility.lua
+++ b/script/fs-utility.lua
@@ -373,7 +373,7 @@ local function fsCopy(source, target, option)
end
return fsSave(target, sourceText, option)
else
- local suc, res = pcall(fs.copy_file, source, target, true)
+ local suc, res = pcall(fs.copy_file, source, target, fs.copy_options.overwrite_existing)
if not suc then
option.err[#option.err+1] = res
return false