Skip to content
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

On FreeBSD std::fs::metadata(".").is_dir() returns false #43005

Closed
kirillrdy opened this issue Jul 1, 2017 · 4 comments
Closed

On FreeBSD std::fs::metadata(".").is_dir() returns false #43005

kirillrdy opened this issue Jul 1, 2017 · 4 comments
Labels
O-freebsd Operating system: FreeBSD T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@kirillrdy
Copy link

I found this by trying glob crate. going through call stack I determied that that issue is on FreeBSD std::fs:metadata(".").unwrap().is_dir() returns false, but on linux it returns true.
Here is code i used to test

use std::fs;

fn main() {
    let dir = fs::metadata(".").unwrap().is_dir();
    println!("{}", dir);
}

I am running FreeBSD-12.0-CURRENT but i hope its not the issue.
I suspect that FreeBSD was just not included in one of targets for function that should work on FreeBSD.

I am happy to provide any/all required information to help fix this,
Cheers,
Kirill R

@kirillrdy kirillrdy changed the title On FreeBSD std::fs::metadata(".") returns false On FreeBSD std::fs::metadata(".").is_dir() returns false Jul 1, 2017
@kirillrdy
Copy link
Author

sorry I there was missing information in the title of the issue :-)

@TimNN TimNN added the O-freebsd Operating system: FreeBSD label Jul 1, 2017
@Mark-Simulacrum Mark-Simulacrum added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Jul 1, 2017
@sfackler
Copy link
Member

sfackler commented Jul 1, 2017

This is probably due to #42681.

@kirillrdy
Copy link
Author

ok, thanks for you reply.
I guess if there is a master issue for this, you can close this one.

@alexcrichton
Copy link
Member

Closing in favor of #42681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-freebsd Operating system: FreeBSD T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants