From 635ea3f23117c3288bafe1138d67eb1845cde48c Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-HQME86J\\marco" Date: Sat, 7 Mar 2020 08:57:03 +0100 Subject: [PATCH] fix #229 --- lib/dtutils/file.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index 1d9fa5b..9fa2c26 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -230,7 +230,7 @@ function dtutils_file.check_if_file_exists(filepath) local result = false if (dt.configuration.running_os == 'windows') then filepath = string.gsub(filepath, '[\\/]+', '\\') - local p = io.popen("if exist " .. filepath .. " (echo 'yes') else (echo 'no')") + local p = io.popen("if exist " .. dtutils_file.sanitize_filename(filepath) .. " (echo 'yes') else (echo 'no')") local ans = p:read("*all") p:close() if string.match(ans, "yes") then