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_mkdir.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_mkdir.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_mkdir.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/netutils/ftpc/ftpc_mkdir.c b/apps/netutils/ftpc/ftpc_mkdir.c index d11466112..0662f2cbc 100644 --- a/apps/netutils/ftpc/ftpc_mkdir.c +++ b/apps/netutils/ftpc/ftpc_mkdir.c @@ -87,6 +87,18 @@ int ftpc_mkdir(SESSION handle, FAR const char *path) ptr = strdup(path); ftpc_stripslash(ptr); + /* Send the MKD request. The MKD request asks the server to create a new + * directory. The server accepts the MKD with either: + * + * - "257 PATHNAME created" that includes the pathname of the directory + * - "250 - Requested file action okay, completed" if the directory was + * successfully created. + * + * The server reject MKD with: + * + * - "550 Requested action not taken" if the creation failed. + */ + ret = ftpc_cmd(session, "MKD %s", ptr); free(ptr); return ret; |