MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / cmd_list_dir

Function cmd_list_dir

examples/file/listdir.c:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72FINSH_FUNCTION_EXPORT(list_dir, list directory);
73
74static void cmd_list_dir(int argc, char *argv[])
75{
76 char* filename;
77
78 if(argc == 2)
79 {
80 filename = argv[1];
81 }
82 else
83 {
84 rt_kprintf("Usage: list_dir [file_path]\n");
85 return;
86 }
87 list_dir(filename);
88}
89MSH_CMD_EXPORT_ALIAS(cmd_list_dir, list_dir, list directory);
90#endif /* RT_USING_FINSH */

Callers

nothing calls this directly

Calls 2

rt_kprintfFunction · 0.85
list_dirFunction · 0.85

Tested by

no test coverage detected