Skip to content

Commit 70724ca

Browse files
committed
ensure web_crawler folder is created
1 parent 1e24976 commit 70724ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flip_storage/web_crawler_storage.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,13 @@ bool save_char(
385385
}
386386
// Create the directory for saving settings
387387
char directory_path[256];
388-
snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/web_crawler/data");
388+
snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/web_crawler");
389389

390390
// Create the directory
391391
Storage *storage = furi_record_open(RECORD_STORAGE);
392392
storage_common_mkdir(storage, directory_path);
393+
snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/web_crawler/data");
394+
storage_common_mkdir(storage, directory_path);
393395

394396
// Open the settings file
395397
File *file = storage_file_alloc(storage);

0 commit comments

Comments
 (0)