-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io/ioutil: TempDir should support patterns like TempFile does #33805
Comments
Changing the Does anybody see any problems with this? |
Given that this is exactly what we did in #4896 for TempFile and no one raised any concerns when Ian asked two weeks ago, this seems like a likely accept. Leaving open for a week for final comments. |
Accepted. |
Change https://golang.org/cl/198488 mentions this issue: |
Hey Russ, I just moved this issue from Backlog back to Go1.14 as I submitted a CL and it is just waiting on feedback on the example test before final review on merge. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to make a temp directory with a predictable name suffix.
What did you expect to see?
A temp directory named
/home/tv/.cache/foo/foo.<random string here>.ext
I expected ioutil.TempDir to follow the same new logic as TempFile now does. See
191efbc
#4896
What did you see instead?
A temp directory named
/home/tv/.cache/foo/foo.*.ext<random string here>
The text was updated successfully, but these errors were encountered: