| 344 | ****************************************************************************/ |
| 345 | |
| 346 | static 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 |
no test coverage detected