Skip to content

Commit a465f99

Browse files
authored
Picopass: Create folder before loclass (#78)
1 parent 93f32a1 commit a465f99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

loclass_writer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LoclassWriter* loclass_writer_alloc() {
1616
LoclassWriter* instance = malloc(sizeof(LoclassWriter));
1717
Storage* storage = furi_record_open(RECORD_STORAGE);
1818
instance->file_stream = buffered_file_stream_alloc(storage);
19+
storage_simply_mkdir(storage, STORAGE_APP_DATA_PATH_PREFIX);
1920
if(!buffered_file_stream_open(
2021
instance->file_stream, LOCLASS_LOGS_PATH, FSAM_WRITE, FSOM_OPEN_APPEND)) {
2122
buffered_file_stream_close(instance->file_stream);

0 commit comments

Comments
 (0)