MCPcopy Create free account
hub / github.com/apache/nuttx / test_dirpath

Function test_dirpath

tools/initialconfig.c:368–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366 ****************************************************************************/
367
368static bool test_dirpath(const char *filepath)
369{
370 struct stat statbuf;
371 int ret;
372
373 ret = stat(filepath, &statbuf);
374 if (ret < 0)
375 {
376 return false;
377 }
378
379 return S_ISDIR(statbuf.st_mode);
380}
381
382/****************************************************************************
383 * Name: foreach_dirent

Callers 2

enum_architecturesFunction · 0.85
enum_boardsFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected