Closed
Description
The documentation for .into_persistent
(and .into_persistent_if
) suggest you can delete a persisted TempDir
by calling .close
on it.
Lines 120 to 129 in 9c5caf2
However, the implementation of .close
explicitly doesn't do anything when the TempDir
has been persisted.
Line 191 in 9c5caf2
So, either
- the documentation example should be updated to clarify a persisted
TempDir
can't be deleted, or - the implementation of
.close
should be updated to removepersisted
TempDir`.
Some background
I ran into this while trying to work around #51 by trying to persist-by-default and close/delete on success.
Metadata
Metadata
Assignees
Labels
No labels