Skip to content

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

Closed
@kirillrdy

Description

@kirillrdy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-freebsdOperating system: FreeBSDT-libs-apiRelevant to the library API 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