Skip to content

Commit

Permalink
ensure web_crawler folder is created
Browse files Browse the repository at this point in the history
  • Loading branch information
jblanked committed Jan 14, 2025
1 parent 1e24976 commit 70724ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flip_storage/web_crawler_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 70724ca

Please sign in to comment.