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

Function test_filepath

tools/initialconfig.c:346–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 ****************************************************************************/
345
346static bool test_filepath(const char *filepath)
347{
348 struct stat statbuf;
349 int ret;
350
351 ret = stat(filepath, &statbuf);
352 if (ret < 0)
353 {
354 return false;
355 }
356
357 return S_ISREG(statbuf.st_mode);
358}
359
360/****************************************************************************
361 * Name: test_dirpath

Callers 4

enum_architecturesFunction · 0.85
enum_mcusFunction · 0.85
enum_boardsFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected