summaryrefslogtreecommitdiff
path: root/demos/host/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-26 15:08:49 +0700
committerhathach <[email protected]>2013-09-26 15:08:49 +0700
commita6726f7d39e15cb01196eaba91ab494b54a00bdb (patch)
tree2b8819bf6fd4f23579022018b4b1c2df89a74841 /demos/host/src
parent0268e0b7876012a3a418fd41afbbb0bcc3c41be6 (diff)
added mkdir command
Diffstat (limited to 'demos/host/src')
-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;
}
//--------------------------------------------------------------------+