Update mkdir as well for path expansion

MS-2855/keylogger-mettle-extension
Spencer McIntyre 2018-02-05 16:16:53 -05:00
parent c70bcb5869
commit 8b56bbc541
1 changed files with 4 additions and 4 deletions

View File

@ -689,10 +689,10 @@ class Console::CommandDispatcher::Stdapi::Fs
return true
end
args.each { |dir|
print_line("Creating directory: #{dir}")
client.fs.dir.mkdir(dir)
args.each { |dir_path|
dir_path = client.fs.file.expand_path(dir_path) if dir_path =~ PATH_EXPAND_REGEX
print_line("Creating directory: #{dir_path}")
client.fs.dir.mkdir(dir_path)
}
return true