| 379 | } |
| 380 | |
| 381 | apr_status_t md_util_is_dir(const char *path, apr_pool_t *pool) |
| 382 | { |
| 383 | apr_finfo_t info; |
| 384 | apr_status_t rv = apr_stat(&info, path, APR_FINFO_TYPE, pool); |
| 385 | if (rv == APR_SUCCESS) { |
| 386 | rv = (info.filetype == APR_DIR)? APR_SUCCESS : APR_EINVAL; |
| 387 | } |
| 388 | return rv; |
| 389 | } |
| 390 | |
| 391 | apr_status_t md_util_is_file(const char *path, apr_pool_t *pool) |
| 392 | { |
no outgoing calls
no test coverage detected