This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
deprecate into_path(), rename persist() #44
Comments
For reference: the |
Hi @vitiral! We're actually moving the Personally, I think Would you like to open this issue on the |
done! See the linked issue. I didn't know about |
Thanks! Since we've got Stebalien/tempfile#42 to track this now I'll close the issue here. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Request
This is a feature/API change request to rename
into_path()
topersist()
, while deprecatinginto_path()
.Reasoning
While I understand the logic behind calling it
into_path()
(since it "converts" the temporary directory into an "ordinary path"),into_path()
actually performs an action from the programmers point of view, namely it removes the invariant that the temporary directory will be deleted ondrop
.This is made even more confusing by the documentation, which says: "This destroys the TempDir without deleting the directory represented by the returned Path." -- from a lingual point of view it sounds like we are destroying the directory
Solution
The text was updated successfully, but these errors were encountered: