FTPc: added cdup, mkd, and rmd commands.

git-svn-id: svn://kolibrios.org@3804 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr
2013-07-10 11:19:18 +00:00
parent 99eec4c8b8
commit a2f86b00f9
2 changed files with 52 additions and 3 deletions

View File

@@ -149,6 +149,42 @@ cmd_lcwd:
jmp wait_for_usercommand
cmd_cdup:
mov dword[s], "CDUP"
mov byte[s+4], 0x0a
mcall send, [socketnum], s, 5, 0
jmp wait_for_servercommand
cmd_rmd:
mov dword[s], "RMD "
mov ecx, 256
xor al, al
mov edi, s
repne scasb
lea esi, [edi - s - 1]
mcall send, [socketnum], s, , 0
jmp wait_for_servercommand
cmd_mkd:
mov dword[s], "MKD "
mov ecx, 256
xor al, al
mov edi, s
repne scasb
lea esi, [edi - s - 1]
mcall send, [socketnum], s, , 0
jmp wait_for_servercommand
; esi = source ptr