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

File extension for afero.TempFile #217

Closed
aswinkarthik opened this issue Aug 30, 2019 · 2 comments
Closed

File extension for afero.TempFile #217

aswinkarthik opened this issue Aug 30, 2019 · 2 comments

Comments

@aswinkarthik
Copy link

Currently, we are unable to set file extension for a temp file that is created using afero.TempFile. In ioutil.TempFile we are able to do so by specifying the pattern like prefix-*.yml, the temp file will be created with a random string at the last *. Refer here

Can afero.TempFile also do a similar replacement? If this change can be accepted, will love to raise a PR.

@nithyanatarajan
Copy link

@spf13 We are also in need of the feature. I have raised a PR for the same. Kindly have a look at it.

@0xmichalis
Copy link
Collaborator

Fixed by #229

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

No branches or pull requests

3 participants