Lines Matching refs:path
73 buffer *path; member
123 char *path; member
169 free(hctx->path); in mod_dirlisting_handler_ctx_free()
180 buffer *path = NULL; in mod_dirlisting_parse_cache() local
195 path = &((data_string *)du)->value; in mod_dirlisting_parse_cache()
196 if (!stat_cache_path_isdir(path)) { in mod_dirlisting_parse_cache()
200 path->ptr); in mod_dirlisting_parse_cache()
206 path->ptr); in mod_dirlisting_parse_cache()
215 cache->path = path; in mod_dirlisting_parse_cache()
577 const buffer *path; in http_list_directory_include_file() local
580 path = p->conf.show_header; in http_list_directory_include_file()
584 path = p->conf.show_readme; in http_list_directory_include_file()
587 if (NULL == path) return; in http_list_directory_include_file()
590 if (path->ptr[0] != '/') { /* temporarily extend r->physical.path */ in http_list_directory_include_file()
591 len = buffer_clen(&r->physical.path); in http_list_directory_include_file()
592 buffer_append_path_len(&r->physical.path, BUF_PTR_LEN(path)); in http_list_directory_include_file()
593 path = &r->physical.path; in http_list_directory_include_file()
596 stat_cache_get_entry_open(path, r->conf.follow_symlink); in http_list_directory_include_file()
598 buffer_truncate(&r->physical.path, len); in http_list_directory_include_file()
861 buffer_append_string_encoded(out, BUF_PTR_LEN(&r->uri.path), ENCODING_MINIMAL_XML); in http_list_directory_header()
916 buffer_append_string_encoded(out, BUF_PTR_LEN(&r->uri.path), ENCODING_MINIMAL_XML); in http_list_directory_header()
931 if (!buffer_is_equal_string(&r->uri.path, CONST_STR_LEN("/"))) { in http_list_directory_header()
988 const uint32_t dlen = buffer_clen(&r->physical.path); in http_open_directory()
998 hctx->path = ck_malloc(dlen + hctx->name_max + 1); in http_open_directory()
999 memcpy(hctx->path, r->physical.path.ptr, dlen+1); in http_open_directory()
1001 hctx->path_file = hctx->path + dlen; in http_open_directory()
1006 hctx->dp = opendir(hctx->path); in http_open_directory()
1008 hctx->dfd = fdevent_open_dirname(hctx->path, r->conf.follow_symlink); in http_open_directory()
1012 log_perror(r->conf.errh, __FILE__, __LINE__, "opendir %s", hctx->path); in http_open_directory()
1079 if (stat(p->path, &st) != 0) in http_read_directory()
1192 content_type = stat_cache_mimetype_by_xattr(hctx->path); in http_list_directory()
1314 if (!buffer_has_slash_suffix(&r->uri.path)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
1327 "URI : %s", r->uri.path.ptr); in URIHANDLER_FUNC()
1334 if (!stat_cache_path_isdir(&r->physical.path)) { in URIHANDLER_FUNC()
1337 log_perror(r->conf.errh,__FILE__,__LINE__,"%s",r->physical.path.ptr); in URIHANDLER_FUNC()
1470 buffer_copy_path_len2(tb, BUF_PTR_LEN(p->conf.cache->path), in mod_dirlisting_cache_check()
1471 BUF_PTR_LEN(&r->physical.path)); in mod_dirlisting_cache_check()
1582 buffer_copy_path_len2(tb, BUF_PTR_LEN(hctx->conf.cache->path), in mod_dirlisting_cache_add()
1583 BUF_PTR_LEN(&r->physical.path)); in mod_dirlisting_cache_add()
1585 && 0 != mkdir_recursive(tb->ptr, buffer_clen(hctx->conf.cache->path))) in mod_dirlisting_cache_add()
1622 buffer_copy_path_len2(tb, BUF_PTR_LEN(hctx->conf.cache->path), in mod_dirlisting_cache_json_init()
1623 BUF_PTR_LEN(&r->physical.path)); in mod_dirlisting_cache_json_init()
1625 && 0 != mkdir_recursive(tb->ptr, buffer_clen(hctx->conf.cache->path))) in mod_dirlisting_cache_json_init()