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

Ability to specify prefix and suffix for temp files #1005

Closed
mfikes opened this issue Aug 17, 2019 · 2 comments · Fixed by #1006
Closed

Ability to specify prefix and suffix for temp files #1005

mfikes opened this issue Aug 17, 2019 · 2 comments · Fixed by #1006
Assignees

Comments

@mfikes
Copy link
Member

mfikes commented Aug 17, 2019

Akin to the ability to so in https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createTempFile(java.lang.String,%20java.lang.String,%20java.nio.file.attribute.FileAttribute...)

@mfikes mfikes self-assigned this Aug 17, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Aug 17, 2019

If you didn't want a file extension, is it just the empty string (as opposed to nil)?

@mfikes
Copy link
Member Author

mfikes commented Aug 17, 2019

@pyrmont That's a good question. I have a patch which will accept nil or "", but I wonder if there is any precedent for that. It would be easy to require non-nil arguments for both.

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 a pull request may close this issue.

2 participants