Skip to content

Commit

Permalink
Change log download file extension to .gz
Browse files Browse the repository at this point in the history
GZip is the final compression algorithm used,
so the file extension should be `.gz`.
  • Loading branch information
takenagain committed Dec 7, 2023
1 parent 1fd20e8 commit be1f64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/log_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class LogStorage {

if (wouldBeOverLimit || isLastFile) {
final archiveFile = File(
'${logFolderPath()}/komodo_wallet_logs_archive_${compressedFiles.length}.g.zip',
'${logFolderPath()}/komodo_wallet_logs_archive_${compressedFiles.length}.gz',
);

final archiveBytes =
Expand All @@ -214,7 +214,7 @@ class LogStorage {
final archives = Directory(logFolderPath())
.listSync(followLinks: false, recursive: true)
.whereType<File>()
.where((f) => f.path.endsWith('.g.zip'))
.where((f) => f.path.endsWith('.gz'))
.toList();

for (var archive in archives) {
Expand Down

0 comments on commit be1f64a

Please sign in to comment.