rmdir now may be used to remove empty nodes from the pseudo-filesystem

This commit is contained in:
Gregory Nutt
2014-02-19 10:01:26 -06:00
parent 39c981668d
commit b70ce5f634
4 changed files with 10 additions and 5 deletions

View File

@@ -344,6 +344,9 @@ static const struct cmdmap_s g_cmdmap[] =
# ifndef CONFIG_NSH_DISABLE_RM
{ "rm", cmd_rm, 2, 2, "<file-path>" },
# endif
# endif
#if CONFIG_NFILE_DESCRIPTORS > 0
# ifndef CONFIG_NSH_DISABLE_RMDIR
{ "rmdir", cmd_rmdir, 2, 2, "<dir-path>" },
# endif