diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-02 01:14:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-02 01:14:12 +0000 |
commit | 6f39c643ac7af0880f49f7673307053db11218e9 (patch) | |
tree | 7d6b9fe3151d71661e51125e108087d3c6f5906c /apps/netutils/ftpc/ftpc_unlink.c | |
parent | df12f072cba62c2c458a7845b4e9b30c30a4af33 (diff) | |
download | nuttx-6f39c643ac7af0880f49f7673307053db11218e9.tar.gz nuttx-6f39c643ac7af0880f49f7673307053db11218e9.tar.bz2 nuttx-6f39c643ac7af0880f49f7673307053db11218e9.zip |
Improved comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3658 42af7a65-404d-4744-a932-0658087f49c3
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; } |