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

download/temp files location #2

Closed
jaemk opened this issue Jul 27, 2017 · 0 comments
Closed

download/temp files location #2

jaemk opened this issue Jul 27, 2017 · 0 comments

Comments

@jaemk
Copy link
Owner

jaemk commented Jul 27, 2017

std::fs::rename requires to and from to be on the same filesystem. Since the tempdir::TempDir::new crate uses std::env::temp_dir, the temp location may not be on the same filesystem as the executable. tempdir should be used within the std::env::current_exes directory.

jaemk added a commit that referenced this issue Jul 28, 2017
- Move the temp dir to the same directory of the current executable
  since `std::fs::rename` requires `to` and `from` to be on
  the same filesystem.
@jaemk jaemk closed this as completed Jul 28, 2017
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

1 participant