Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Keep timestamps when extracting an archive #11976

Merged
merged 9 commits into from
Apr 23, 2023
6 changes: 6 additions & 0 deletions src/Files.App/Helpers/ZipHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,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