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
now changes the current directory to the file, rather than
615
621
always returning an error.
616
622
</p>
617
623
618
-
<p><!-- https://go.dev/issue/32558 -->
619
-
TODO: <ahref="https://go.dev/issue/32558">https://go.dev/issue/32558</a>: allow Chtimes with time.Time{} to avoid setting time
620
-
</p>
621
-
622
-
<p><!-- CL 219638 -->
623
-
TODO: <ahref="https://go.dev/cl/219638">https://go.dev/cl/219638</a>: os: make Chtimes accept empty time values to skip file time modification
624
-
</p>
625
-
626
624
<p><!-- CL 477215 -->
627
-
TODO: <ahref="https://go.dev/cl/477215">https://go.dev/cl/477215</a>: os: avoid creating a new file in Truncate on Windows; os.Truncate on Windows no longer now fails if the file does not exist, consistent with other platforms
625
+
On Windows calling
626
+
<ahref="/pkg/os/#Truncate"><code>Truncate</code></a> on a
627
+
non-existent file used to create an empty file. It now returns
628
+
an error indicating that the file does not exist.
628
629
</p>
629
630
630
631
<p><!-- CL 493036 -->
631
-
TODO: <ahref="https://go.dev/cl/493036">https://go.dev/cl/493036</a>: os, syscall: support ill-formed UTF-16 strings on Windows
632
+
On Windows the os package now supports working with files whose
633
+
names, stored as UTF-16, can't be represented as valid UTF-8.
0 commit comments