Browse Subversion Repository
Diff of /tags/REL-2.1/ftp_delete.c
Parent Directory
| Revision Log
| Patch
| 45 |
*/ |
*/ |
| 46 |
snprintf( str1, sizeof(str1)-1, "DELE %s\r\n", fname ); |
snprintf( str1, sizeof(str1)-1, "DELE %s\r\n", fname ); |
| 47 |
if( ftp_send_command( ftp, str1 ) < 0 ) { |
if( ftp_send_command( ftp, str1 ) < 0 ) { |
| 48 |
DEBUGPRINT1( "pwd: command sending error. %s\n", str1 ); |
DEBUGPRINT1( "delete: command sending error. %s\n", str1 ); |
| 49 |
return -1; |
return -1; |
| 50 |
} |
} |
| 51 |
|
|
| 52 |
if( (ret = ftp_receive_response( ftp, str1, sizeof(str1) )) != 250 ) { /* 250: Requested file action okay, completed. */ |
if( (ret = ftp_receive_response( ftp, str1, sizeof(str1) )) != 250 ) { /* 250: Requested file action okay, completed. */ |
| 53 |
DEBUGPRINT1( "pwd: command response error. %d\n", ret ); |
DEBUGPRINT1( "delete: command response error. %d\n", ret ); |
| 54 |
return -2; |
return -2; |
| 55 |
} |
} |
| 56 |
|
|
|
|
Legend:
| Removed from v.21 |
|
| changed lines |
| |
Added in v.22 |
|
|
| |