| 366 | ****************************************************************************/ |
| 367 | |
| 368 | static 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 |
no test coverage detected