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
I was about to say “can’t you os.Chtimes() before calling CloseAtomicallyReplace()?”, but I think the problem might be that the t.Sync() and/or t.Close() that CloseAtomicallyReplace calls change the modification time themselves, so the Chtimes needs to happen just above
Sounds reasonable, pull requests welcome. We probably need to make both atime and mtime configurable in a single option as that’s what os.Chtimes() wants.
In some situations I need to set modification time for the new file.
Having an Option
WithPermissions
that takes provided
time
into account and updates the resulting file would make it possible.The text was updated successfully, but these errors were encountered: