Skip to content
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

Modify afero.TempFile() to support pattern instead of prefix #221

Closed
wants to merge 1 commit into from
Closed

Modify afero.TempFile() to support pattern instead of prefix #221

wants to merge 1 commit into from

Conversation

nithyanatarajan
Copy link

Context:

  • initially afero.TempFile() takes prefix as last argument and adds a random string to the end. This posed difficulty when trying to add a file extension with randomised filename.
  • to avoid this, going forward afero.Tempfile() takes a pattern and replace the last * with the random string. This behavior is same as ioutil.Tempfile()

This PR closes the issue #217

- initially afero.TempFile() takes prefix as last argument and adds a random string to the end. This posed difficulty when trying to add a file extension with randomised filename.
- to avoid this, going forward afero.Tempfile() takes a pattern and replace the last * with the random string. This behaviour is same as ioutil.Tempfile()

This PR closes the issue #217

Signed-off-by: Nithya Natarajan <nithyanatarajn@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Oct 5, 2019

CLA assistant check
All committers have signed the CLA.

@0xmichalis
Copy link
Collaborator

oops, sorry for missing this PR, already fixed in #229 but thanks for the contribution!

@0xmichalis 0xmichalis closed this Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants