#[cfg(not(target_os = "wasi"))]
use crate::filesystem::primitives::DirOptionsExt;
#[derive(Debug, Clone)]
pub struct DirOptions {
#[cfg(not(target_os = "wasi"))]
#[allow(dead_code)]
pub(crate) ext: DirOptionsExt,
}
impl DirOptions {
#[allow(clippy::new_without_default)]
#[inline]
pub const fn new() -> Self {
Self {
#[cfg(not(target_os = "wasi"))]
ext: DirOptionsExt::new(),
}
}
}
#[cfg(target_os = "vxworks")]
impl crate::fs::DirBuilderExt for DirOptions {
#[inline]
fn mode(&mut self, mode: u32) -> &mut Self {
self.ext.mode(mode);
self
}
}