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

[Suggestion] A way to provide a containing directory other than by changing the environment variable #1

Closed
shepmaster opened this issue Jun 21, 2016 · 1 comment
Assignees

Comments

@shepmaster
Copy link

Maybe something like

new_dir_in(&Path)

?

Or maybe a structure like

TempBuilder::new()
  .in(&Path) // optional
  .file() // or .dir
@shepmaster shepmaster changed the title Suggest a way to provide a containing directory other than by changing the environment variable [Suggestion] A way to provide a containing directory other than by changing the environment variable Jun 21, 2016
@samgiles samgiles self-assigned this Jun 26, 2016
@samgiles
Copy link
Owner

Thanks for the suggestion! I've implemented a simple new_dir_in and new_file_in API. Might use a builder API in the future, but wanted to keep it simple for now.

https://samgiles.github.io/rs-mktemp/mktemp/struct.Temp.html

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

2 participants