6 static int do_rmdir(struct command
*cmdtp
, int argc
, char *argv
[])
11 return COMMAND_ERROR_USAGE
;
15 printf("could not remove %s: %s\n", argv
[i
], errno_str());
24 static const __maybe_unused
char cmd_rmdir_help
[] =
25 "Usage: rmdir [directories]\n"
26 "Remove directories. The directories have to be empty.\n";
28 BAREBOX_CMD_START(rmdir
)
30 .usage
= "remove directorie(s)",
31 BAREBOX_CMD_HELP(cmd_rmdir_help
)