WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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