1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Update mkdir as well for path expansion

This commit is contained in:
Spencer McIntyre 2018-02-05 16:16:53 -05:00
parent c70bcb5869
commit 8b56bbc541

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