lib/dtutils/file - os.tmpname now works correctly on windows, removed

check and fix
This commit is contained in:
Bill Ferguson
2024-08-13 17:46:28 -04:00
parent b07c680332
commit a079860cd8

View File

@@ -861,9 +861,6 @@ dtutils_file.libdoc.functions["create_tmp_file"] = {
function dtutils_file.create_tmp_file()
local tmp_file = os.tmpname()
if dt.configuration.running_os == "windows" then
tmp_file = dt.configuration.tmp_dir .. tmp_file -- windows os.tmpname() defaults to root directory
end
local f = io.open(tmp_file, "w")
if not f then