diff options
Diffstat (limited to 'apps/netutils/ftpc/ftpc_unlink.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_unlink.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/netutils/ftpc/ftpc_unlink.c b/apps/netutils/ftpc/ftpc_unlink.c index 3a49374de..2af5d4f29 100644 --- a/apps/netutils/ftpc/ftpc_unlink.c +++ b/apps/netutils/ftpc/ftpc_unlink.c @@ -80,6 +80,17 @@ int ftpc_unlink(SESSION handle, FAR const char *path) FAR struct ftpc_session_s *session = (FAR struct ftpc_session_s *)handle; int ret; + /* A DELE request asks the server to remove a regular file. A typical server + * accepts DELE with: + * + * - "250 Requested file action okay, completed" if the file was + * successfully removed + * + * Or rejects RMD with: + * + * - "550 Requested action not taken" f the removal failed. + */ + ret = ftpc_cmd(session, "DELE %s", path); return ret; } |