diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-18 14:59:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-18 14:59:33 +0800 |
commit | b1eb4fd16c62c2c9b12375f6e50ed5dd4df6ed46 (patch) | |
tree | f8843d708802723d10cf005444693156d37aac76 | |
parent | 0b5b56592eaa331b9331e7e392cd80a96f9f8c42 (diff) | |
download | lua-language-server-b1eb4fd16c62c2c9b12375f6e50ed5dd4df6ed46.zip |
update fs.copy_file
-rw-r--r-- | script/fs-utility.lua | 2 |
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 |