Przeglądaj źródła

Picopass: Create folder before loclass (#78)

Eric Betts 2 lat temu
rodzic
commit
7f0b43e936
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      loclass_writer.c

+ 1 - 0
loclass_writer.c

@@ -16,6 +16,7 @@ LoclassWriter* loclass_writer_alloc() {
     LoclassWriter* instance = malloc(sizeof(LoclassWriter));
     Storage* storage = furi_record_open(RECORD_STORAGE);
     instance->file_stream = buffered_file_stream_alloc(storage);
+    storage_simply_mkdir(storage, STORAGE_APP_DATA_PATH_PREFIX);
     if(!buffered_file_stream_open(
            instance->file_stream, LOCLASS_LOGS_PATH, FSAM_WRITE, FSOM_OPEN_APPEND)) {
         buffered_file_stream_close(instance->file_stream);