MCPcopy Create free account
hub / github.com/apache/httpd / insp_dir

Function insp_dir

modules/md/md_store_fs.c:817–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817static apr_status_t insp_dir(void *baton, apr_pool_t *p, apr_pool_t *ptemp,
818 const char *dir, const char *name, apr_filetype_e ftype)
819{
820 inspect_ctx *ctx = baton;
821 apr_status_t rv;
822 const char *fpath;
823
824 (void)ftype;
825 md_log_perror(MD_LOG_MARK, MD_LOG_TRACE3, 0, ptemp, "inspecting dir at: %s/%s", dir, name);
826 if (MD_OK(md_util_path_merge(&fpath, p, dir, name, NULL))) {
827 ctx->dirname = name;
828 rv = md_util_files_do(insp, ctx, p, fpath, ctx->aspect, NULL);
829 if (APR_STATUS_IS_ENOENT(rv)) {
830 rv = APR_SUCCESS;
831 }
832 }
833 return rv;
834}
835
836static apr_status_t fs_iterate(md_store_inspect *inspect, void *baton, md_store_t *store,
837 apr_pool_t *p, md_store_group_t group, const char *pattern,

Callers

nothing calls this directly

Calls 3

md_log_perrorFunction · 0.85
md_util_path_mergeFunction · 0.85
md_util_files_doFunction · 0.85

Tested by

no test coverage detected