You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set all file timestamps consistently to prevent backwards time
When restoring files from cache, set creation time, last modified time,
and last access time to the same value from the ZIP entry. This prevents
the scenario where creation time is newer than last modified time, which
can occur when only setting last modified time while creation time
defaults to the extraction time.
Uses BasicFileAttributeView.setTimes() instead of Files.setLastModifiedTime()
to set all three timestamps atomically. This ensures consistent timestamp
state across all supported platforms (Windows, macOS, Linux).
0 commit comments