Skip to content

Add tokio::fs::exists #3373

@Darksonn

Description

@Darksonn

Note that std implements exists as the following, so you can already do this by calling metadata, however we should still add the method.

pub fn exists(&self) -> bool {
    fs::metadata(self).is_ok()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateE-easyCall for participation: Experience needed to fix: Easy / not muchE-help-wantedCall for participation: Help is requested to fix this issue.M-fsModule: tokio/fs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions