//! Extension traits for `Dir`

#![deny(missing_docs)]
#![cfg_attr(all(windows, windows_by_handle), feature(windows_by_handle))]
#![doc(
    html_logo_url = "https://raw.githubusercontent.com/bytecodealliance/cap-std/main/media/cap-std.svg"
)]
#![doc(
    html_favicon_url = "https://raw.githubusercontent.com/bytecodealliance/cap-std/main/media/cap-std.ico"
)]

mod dir_ext;
mod file_type_ext;
mod is_read_write;
mod metadata_ext;
mod open_options_follow_ext;
mod reopen;

#[cfg(all(any(feature = "std", feature = "async_std"), feature = "fs_utf8"))]
pub use dir_ext::DirExtUtf8;
pub use dir_ext::{DirExt, SystemTimeSpec};
pub use file_type_ext::FileTypeExt;
pub use is_read_write::IsReadWrite;
pub use metadata_ext::MetadataExt;
pub use open_options_follow_ext::{FollowSymlinks, OpenOptionsFollowExt};
pub use reopen::Reopen;

/// Re-export this to allow it to be used with `Reuse`.
pub use cap_primitives::fs::OpenOptions;
