We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d355095 commit cadd98dCopy full SHA for cadd98d
lib/dtutils/file.lua
@@ -292,8 +292,7 @@ function dtutils_file.file_copy(fromFile, toFile)
292
local result = nil
293
-- if cp exists, use it
294
if dt.configuration.running_os == "windows" then
295
- os.execute('copy "' .. fromFile .. '" "' .. toFile .. '"')
296
- result = true
+ result = os.execute('copy "' .. fromFile .. '" "' .. toFile .. '"')
297
elseif dtutils_file.check_if_bin_exists("cp") then
298
result = os.execute("cp '" .. fromFile .. "' '" .. toFile .. "'")
299
end
0 commit comments