Skip to content

docs: tokio::fs::create_dir_all() specify if path existing is an error #7424

Open
@jaskij

Description

@jaskij

As in the title. create_dir() clearly states that path existing causes an error. create_dir_all() does not specify that this is an error, but it also does not specify that it's not an error. Nor is it mentioned as a platform-specific behavior, unless we assume that mkdir references mkdir(1), not mkdir(2) or mkdir(3), which makes little sense to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateM-fsModule: tokio/fsT-docsTopic: documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions