File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -812,7 +812,7 @@ dtutils_file.libdoc.functions["mkdir"] = {
812
812
function dtutils_file .mkdir (path )
813
813
if not dtutils_file .check_if_file_exists (path ) then
814
814
local mkdir_cmd = dt .configuration .running_os == " windows" and " mkdir" or " mkdir -p"
815
- return dsys .external_command (mkdir_cmd .. " " .. path )
815
+ return dsys .external_command (mkdir_cmd .. " " .. dtutils_file . sanitize_filename ( path ) )
816
816
else
817
817
return 0
818
818
end
@@ -837,7 +837,7 @@ dtutils_file.libdoc.functions["rmdir"] = {
837
837
838
838
function dtutils_file .rmdir (path )
839
839
local rm_cmd = dt .configuration .running_os == " windows" and " rmdir /S /Q" or " rm -r"
840
- return dsys .external_command (rm_cmd .. " " .. path )
840
+ return dsys .external_command (rm_cmd .. " " .. dtutils_file . sanitize_filename ( path ) )
841
841
end
842
842
843
843
dtutils_file .libdoc .functions [" create_tmp_file" ] = {
You can’t perform that action at this time.
0 commit comments