You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I heavily rely on tempfile for a research project's sandbox that I am working on, and I need to test whether a file (stored inside of a temporary directory using the crate) exists inside a temporary directory. However, I do not want to / I am not able to to build functionality that selectively sets keep to true depending on whether I am using a test.
It would be great if I could enable this option after initializing the temporary directory for testing purposes.
Thank you for working on this crate!
The text was updated successfully, but these errors were encountered:
I'm not sure I understand the request. Based on the title, I'd suggest you use TempDir::into_path()
Sorry for the chaotic-ness of my issue. Your suggestion seems interesting and looks like a better way than the one I wanted, I completely missed it! Do you think I should document TempDir::into_path() in the keep function?
I heavily rely on
tempfile
for a research project's sandbox that I am working on, and I need to test whether a file (stored inside of a temporary directory using the crate) exists inside a temporary directory. However, I do not want to / I am not able to to build functionality that selectively setskeep
to true depending on whether I am using a test.It would be great if I could enable this option after initializing the temporary directory for testing purposes.
Thank you for working on this crate!
The text was updated successfully, but these errors were encountered: