Skip to content

clarify that calling fs::remove_dir_all on a file is an error #137230

Closed
@lolbinarycat

Description

@lolbinarycat

Location

https://doc.rust-lang.org/stable/std/fs/fn.remove_dir_all.html

Summary

Add to the errors section "if the passed path is a regular file, this function returns NotADirectory". This clarifies that it is not the same operation as rm -r, and also specifies which error will be returned in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions