Use rename or move where appropriate

This commit is contained in:
Willy-JL
2023-05-26 22:21:32 +01:00
parent 8e6e5e18f0
commit 92f54c45ff
6 changed files with 9 additions and 18 deletions
+1 -2
View File
@@ -66,8 +66,7 @@ void flipper_migrate_files() {
FileInfo file_info;
if(storage_common_stat(storage, U2F_CNT_OLD_FILE, &file_info) == FSE_OK &&
file_info.size > 200) { // Is on Int and has content
storage_common_remove(storage, U2F_CNT_FILE); // Remove outdated on Ext
storage_common_rename(storage, U2F_CNT_OLD_FILE, U2F_CNT_FILE); // Int -> Ext
storage_common_move(storage, U2F_CNT_OLD_FILE, U2F_CNT_FILE); // Int -> Ext
}
storage_common_copy(storage, U2F_KEY_OLD_FILE, U2F_KEY_FILE); // Ext -> Int