summaryrefslogtreecommitdiff
path: root/script/fs-utility.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/fs-utility.lua')
-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