Explorar o código

ensure web_crawler folder is created

jblanked hai 1 ano
pai
achega
70724ca29d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      flip_storage/web_crawler_storage.c

+ 3 - 1
flip_storage/web_crawler_storage.c

@@ -385,11 +385,13 @@ bool save_char(
     }
     }
     // Create the directory for saving settings
     // Create the directory for saving settings
     char directory_path[256];
     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
     // Create the directory
     Storage *storage = furi_record_open(RECORD_STORAGE);
     Storage *storage = furi_record_open(RECORD_STORAGE);
     storage_common_mkdir(storage, directory_path);
     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
     // Open the settings file
     File *file = storage_file_alloc(storage);
     File *file = storage_file_alloc(storage);