diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-19 10:01:26 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-19 10:01:26 -0600 |
commit | 9277eac1a8e6fb401e77e0802cb1d38a37f7530c (patch) | |
tree | 952c0fa6988492ce18b157a608a5656adb35e792 /apps/nshlib/nsh_command.c | |
parent | a056eba87db4299725e9c64a9869735a1400c1be (diff) | |
download | px4-nuttx-9277eac1a8e6fb401e77e0802cb1d38a37f7530c.tar.gz px4-nuttx-9277eac1a8e6fb401e77e0802cb1d38a37f7530c.tar.bz2 px4-nuttx-9277eac1a8e6fb401e77e0802cb1d38a37f7530c.zip |
rmdir now may be used to remove empty nodes from the pseudo-filesystem
Diffstat (limited to 'apps/nshlib/nsh_command.c')
-rw-r--r-- | apps/nshlib/nsh_command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_command.c b/apps/nshlib/nsh_command.c index ea028d463..996383694 100644 --- a/apps/nshlib/nsh_command.c +++ b/apps/nshlib/nsh_command.c @@ -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 |