Skip to content

extra::tempfile::mkdtemp should return an RAII wrapper, not a Path #9763

Closed
@ben0x539

Description

@ben0x539

There is not a lot of ways to use the path to a supposedly temporary filesystem entry correctly without some RAII'd logic to remove the entry in the case of failure. Pretty much all callers have to use finally, which I gather we aren't too happy with because of rightwards drift, or roll their own RAII, which seems like it could be provided out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions