From a6726f7d39e15cb01196eaba91ab494b54a00bdb Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 26 Sep 2013 15:08:49 +0700 Subject: [PATCH] added mkdir command --- demos/host/src/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/host/src/cli.c b/demos/host/src/cli.c index 8e5900abb..adfdac56f 100644 --- a/demos/host/src/cli.c +++ b/demos/host/src/cli.c @@ -348,9 +348,9 @@ cli_error_t cli_cmd_cat(char *p_para) //--------------------------------------------------------------------+ cli_error_t cli_cmd_mkdir(char *p_para) { - puts("executing mkdir"); + if ( strlen(p_para) == 0 ) return CLI_ERROR_INVALID_PARA; - return CLI_ERROR_NONE; + return (f_mkdir(p_para) == FR_OK) ? CLI_ERROR_NONE : CLI_ERROR_FAILED; } //--------------------------------------------------------------------+