We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb88166 commit 2923f3aCopy full SHA for 2923f3a
library/std/src/sys/unix/fs.rs
@@ -1639,11 +1639,20 @@ mod remove_dir_impl {
1639
None
1640
}
1641
1642
+ #[cfg(target_os = "fuchsia")]
1643
+ fn is_dir(ent: &DirEntry) -> Option<bool> {
1644
+ match ent.entry.d_type {
1645
+ libc::DT_DIR => Some(true),
1646
+ _ => Some(false),
1647
+ }
1648
1649
+
1650
#[cfg(not(any(
1651
target_os = "solaris",
1652
target_os = "illumos",
1653
target_os = "haiku",
- target_os = "vxworks"
1654
+ target_os = "vxworks",
1655
+ target_os = "fuchsia"
1656
)))]
1657
fn is_dir(ent: &DirEntry) -> Option<bool> {
1658
match ent.entry.d_type {
0 commit comments