mkdir
git-svn-id: file:///home/svn/incoming/trunk@2368 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
593bc26ff2
commit
b601772d18
|
@ -59,6 +59,21 @@ class Dir < Rex::Post::Dir
|
|||
return 0
|
||||
end
|
||||
|
||||
=begin
|
||||
mkdir(path)
|
||||
|
||||
Creates a directory.
|
||||
=end
|
||||
def Dir.mkdir(path)
|
||||
request = Packet.create_request('stdapi_fs_mkdir')
|
||||
|
||||
request.add_tlv(TLV_TYPE_DIRECTORY_PATH, path)
|
||||
|
||||
response = client.send_request(request)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
=begin
|
||||
pwd
|
||||
|
||||
|
|
Loading…
Reference in New Issue