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:
parent
c70bcb5869
commit
8b56bbc541
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user