summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/host/src/cli.c4
1 files 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;
}
//--------------------------------------------------------------------+