mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
cp:support -r recursive copies
The cp command supports recursive copying. Use "cp -r" to copy a folder. Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
@@ -169,7 +169,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_CP
|
||||
CMD_MAP("cp", cmd_cp, 3, 3, "<source-path> <dest-path>"),
|
||||
CMD_MAP("cp", cmd_cp, 3, 4, "[-r] <source-path> <dest-path>"),
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_CMP
|
||||
|
Reference in New Issue
Block a user