Skip to content
Snippets Groups Projects
Commit 5a9b6432 authored by Constantin Konstantinidis's avatar Constantin Konstantinidis Committed by Gopher Robot
Browse files

os: make Chtimes accept empty time values to skip file time modification

Empty time value time.Time{} leaves the corresponding time of the file
unchanged.

Fixes #32558

Change-Id: I1aff42f30668ff505ecec2e9509d8f2b8e4b1b6a
Reviewed-on: https://go-review.googlesource.com/c/go/+/219638


TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@google.com>
Reviewed-by: default avatarCherry Mui <cherryyz@google.com>
parent 96add980
No related branches found
No related tags found
No related merge requests found
Showing
with 232 additions and 8 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment