Skip to content

[docs] Fix reference to obsolete fs::stat function #29753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

mbrubeck
Copy link
Contributor

This function was renamed to fs::metadata.

@rust-highfive
Copy link
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@crumblingstatue
Copy link
Contributor

fs::stat is also mentioned here:

rust/src/libstd/path.rs

Lines 1819 to 1824 in 1be3f9f

/// Boolean value indicator whether the underlying file exists on the local
/// filesystem. Returns false in exactly the cases where `fs::stat` fails.
#[stable(feature = "path_ext", since = "1.5.0")]
pub fn exists(&self) -> bool {
fs::metadata(self).is_ok()
}

@steveklabnik
Copy link
Member

@mbrubeck mind snagging that other one while you're at it?

@alexcrichton alexcrichton deleted the doc-fs-stat branch November 10, 2015 19:11
@alexcrichton
Copy link
Member

Oh wow oops I just decided to clean out some branches in rust-lang/rust and apparently this was created as a branch from there!

Sorry about that, but could you reopen as a branch from your own repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants