Searched refs:filepath (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-3.4.0/examples/protocols/http_server/restful_server/main/ |
D | rest_server.c | 39 static esp_err_t set_content_type_from_file(httpd_req_t *req, const char *filepath) in set_content_type_from_file() argument 42 if (CHECK_FILE_EXTENSION(filepath, ".html")) { in set_content_type_from_file() 44 } else if (CHECK_FILE_EXTENSION(filepath, ".js")) { in set_content_type_from_file() 46 } else if (CHECK_FILE_EXTENSION(filepath, ".css")) { in set_content_type_from_file() 48 } else if (CHECK_FILE_EXTENSION(filepath, ".png")) { in set_content_type_from_file() 50 } else if (CHECK_FILE_EXTENSION(filepath, ".ico")) { in set_content_type_from_file() 52 } else if (CHECK_FILE_EXTENSION(filepath, ".svg")) { in set_content_type_from_file() 61 char filepath[FILE_PATH_MAX]; in rest_common_get_handler() local 64 strlcpy(filepath, rest_context->base_path, sizeof(filepath)); in rest_common_get_handler() 66 strlcat(filepath, "/index.html", sizeof(filepath)); in rest_common_get_handler() [all …]
|
/hal_espressif-3.4.0/examples/protocols/http_server/file_serving/main/ |
D | file_server.c | 209 char filepath[FILE_PATH_MAX]; in download_get_handler() local 213 …const char *filename = get_path_from_uri(filepath, ((struct file_server_data *)req->user_ctx)->bas… in download_get_handler() 214 req->uri, sizeof(filepath)); in download_get_handler() 224 return http_resp_dir_html(req, filepath); in download_get_handler() 227 if (stat(filepath, &file_stat) == -1) { in download_get_handler() 235 ESP_LOGE(TAG, "Failed to stat file : %s", filepath); in download_get_handler() 241 fd = fopen(filepath, "r"); in download_get_handler() 243 ESP_LOGE(TAG, "Failed to read existing file : %s", filepath); in download_get_handler() 290 char filepath[FILE_PATH_MAX]; in upload_post_handler() local 296 …const char *filename = get_path_from_uri(filepath, ((struct file_server_data *)req->user_ctx)->bas… in upload_post_handler() [all …]
|
/hal_espressif-3.4.0/tools/test_apps/system/no_embedded_paths/ |
D | check_for_file_paths.py | 62 … files += [os.path.join(dirpath, filepath) for filepath in filepaths if filepath.endswith('.obj')]
|
/hal_espressif-3.4.0/components/nvs_flash/nvs_partition_generator/ |
D | nvs_partition_gen.py | 685 def set_target_filepath(outdir, filepath): argument 695 if filepath: 696 key_file_name, ext = os.path.splitext(filepath) 698 filepath = key_file_name + bin_ext 700 sys.exit('Error: `%s`. Only `%s` extension allowed.' % (filepath, bin_ext)) 706 filedir, filename = os.path.split(filepath) 711 if os.path.isabs(filepath): 713 …print('\nWarning: `%s` \n\t==> absolute path given so outdir is ignored for this file.' % filepath) 718 filepath = os.path.join(outdir, '') + filepath 720 return outdir, filepath [all …]
|