From 70724ca29d64ba65c9803456277e0f7b4620e5ed Mon Sep 17 00:00:00 2001 From: jblanked <82678820+jblanked@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:12:51 -0500 Subject: [PATCH] ensure web_crawler folder is created --- flip_storage/web_crawler_storage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flip_storage/web_crawler_storage.c b/flip_storage/web_crawler_storage.c index d3eec48..812fbf4 100644 --- a/flip_storage/web_crawler_storage.c +++ b/flip_storage/web_crawler_storage.c @@ -385,11 +385,13 @@ bool save_char( } // Create the directory for saving settings char directory_path[256]; - snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/web_crawler/data"); + snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/web_crawler"); // Create the directory Storage *storage = furi_record_open(RECORD_STORAGE); storage_common_mkdir(storage, directory_path); + snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/web_crawler/data"); + storage_common_mkdir(storage, directory_path); // Open the settings file File *file = storage_file_alloc(storage);