Skip to content

Commit 11881b3

Browse files
committed
removed sanitize_filename wrapper from path argument
1 parent e5537fd commit 11881b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/dtutils/file.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,13 @@ dtutils_file.libdoc.functions["mkdir"] = {
576576
function dtutils_file.mkdir(path)
577577
if not dtutils_file.check_if_file_exists(path) then
578578
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)
580580
else
581581
return 0
582582
end
583583
end
584584

585-
dtutils_file.libdoc.functions["rm"] = {
585+
dtutils_file.libdoc.functions["rmdir"] = {
586586
Name = [[rmdir]],
587587
Synopsis = [[recursively remove a directory]],
588588
Usage = [[local df = require "lib/dtutils.file"
@@ -601,7 +601,7 @@ dtutils_file.libdoc.functions["rm"] = {
601601

602602
function dtutils_file.rmdir(path)
603603
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)
605605
end
606606

607607

0 commit comments

Comments
 (0)