|
@@ -102,7 +102,7 @@ bool vb_migrate_delete(VbMigrate* inst, const char* dev_name, bool whole_vb) {
|
|
|
FuriString* file_path = furi_string_alloc();
|
|
FuriString* file_path = furi_string_alloc();
|
|
|
while(storage_dir_read(dir_handle, &file_info, name, sizeof(name))) {
|
|
while(storage_dir_read(dir_handle, &file_info, name, sizeof(name))) {
|
|
|
// Files that is .nfc, but is not template
|
|
// Files that is .nfc, but is not template
|
|
|
- if(!(file_info.flags & FSF_DIRECTORY) && strstr(name, NFC_APP_EXTENSION) &&
|
|
|
|
|
|
|
+ if(!(file_info.flags & FSF_DIRECTORY) && strstr(name, NFC_APP_FILENAME_EXTENSION) &&
|
|
|
!strstr(name, VB_MIGRATE_TEMPLATE_NAME)) {
|
|
!strstr(name, VB_MIGRATE_TEMPLATE_NAME)) {
|
|
|
furi_string_printf(file_path, "%s/%s", furi_string_get_cstr(dir_path), name);
|
|
furi_string_printf(file_path, "%s/%s", furi_string_get_cstr(dir_path), name);
|
|
|
deleted =
|
|
deleted =
|
|
@@ -131,7 +131,7 @@ int vb_migrate_count_captured_mons(VbMigrate* inst, const char* dev_name) {
|
|
|
char name[256];
|
|
char name[256];
|
|
|
while(storage_dir_read(dir_handle, &file_info, name, sizeof(name))) {
|
|
while(storage_dir_read(dir_handle, &file_info, name, sizeof(name))) {
|
|
|
// Files that is .nfc, but is not template
|
|
// Files that is .nfc, but is not template
|
|
|
- if(!(file_info.flags & FSF_DIRECTORY) && strstr(name, NFC_APP_EXTENSION) &&
|
|
|
|
|
|
|
+ if(!(file_info.flags & FSF_DIRECTORY) && strstr(name, NFC_APP_FILENAME_EXTENSION) &&
|
|
|
!strstr(name, VB_MIGRATE_TEMPLATE_NAME))
|
|
!strstr(name, VB_MIGRATE_TEMPLATE_NAME))
|
|
|
++count;
|
|
++count;
|
|
|
}
|
|
}
|
|
@@ -153,7 +153,7 @@ int vb_migrate_get_next_id(VbMigrate* inst, const char* dev_name, int i, bool is
|
|
|
"%s/" VB_MIGRATE_CAPTURE_FORMAT,
|
|
"%s/" VB_MIGRATE_CAPTURE_FORMAT,
|
|
|
furi_string_get_cstr(dir_path),
|
|
furi_string_get_cstr(dir_path),
|
|
|
i,
|
|
i,
|
|
|
- NFC_APP_EXTENSION);
|
|
|
|
|
|
|
+ NFC_APP_FILENAME_EXTENSION);
|
|
|
bool exit_cond =
|
|
bool exit_cond =
|
|
|
storage_common_stat(inst->storage, furi_string_get_cstr(file_path), NULL) ==
|
|
storage_common_stat(inst->storage, furi_string_get_cstr(file_path), NULL) ==
|
|
|
FSE_NOT_EXIST;
|
|
FSE_NOT_EXIST;
|