File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -576,13 +576,13 @@ dtutils_file.libdoc.functions["mkdir"] = {
576
576
function dtutils_file .mkdir (path )
577
577
if not dtutils_file .check_if_file_exists (path ) then
578
578
local mkdir_cmd = dt .configuration .running_os == " windows" and " mkdir" or " mkdir -p"
579
- return dsys .external_command (mkdir_cmd .. " " .. dtutils_file . sanitize_filename ( path ) )
579
+ return dsys .external_command (mkdir_cmd .. " " .. path )
580
580
else
581
581
return 0
582
582
end
583
583
end
584
584
585
- dtutils_file .libdoc .functions [" rm " ] = {
585
+ dtutils_file .libdoc .functions [" rmdir " ] = {
586
586
Name = [[ rmdir]] ,
587
587
Synopsis = [[ recursively remove a directory]] ,
588
588
Usage = [[ local df = require "lib/dtutils.file"
@@ -601,7 +601,7 @@ dtutils_file.libdoc.functions["rm"] = {
601
601
602
602
function dtutils_file .rmdir (path )
603
603
local rm_cmd = dt .configuration .running_os == " windows" and " rmdir /S /Q" or " rm -r"
604
- return dsys .external_command (rm_cmd .. " " .. dtutils_file . sanitize_filename ( path ) )
604
+ return dsys .external_command (rm_cmd .. " " .. path )
605
605
end
606
606
607
607
You can’t perform that action at this time.
0 commit comments