From 6f39c643ac7af0880f49f7673307053db11218e9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 2 Jun 2011 01:14:12 +0000 Subject: Improved comments git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3658 42af7a65-404d-4744-a932-0658087f49c3 --- apps/netutils/ftpc/ftpc_mkdir.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'apps/netutils/ftpc/ftpc_mkdir.c') 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; -- cgit v1.2.3