Skip to content

Commit

Permalink
Feature: Keep timestamps when extracting an archive (#11976)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrariofilippo authored Apr 23, 2023
1 parent fdfe21d commit cf7971c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Files.App/Helpers/ZipHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ public static async Task ExtractArchive(BaseStorageFile archive, BaseStorageFold
return; // TODO: handle error
}
}

_ = new FileInfo(filePath)
{
CreationTime = entry.CreationTime < entry.LastWriteTime ? entry.CreationTime : entry.LastWriteTime,
LastWriteTime = entry.LastWriteTime,
};

entriesFinished++;
fsProgress.ProcessedItemsCount = entriesFinished;
Expand Down

0 comments on commit cf7971c

Please sign in to comment.