#![allow(
trivial_numeric_casts,
reason = "preexisting from when cap-primitives was imported"
)]
#![allow(
unsafe_op_in_unsafe_fn,
reason = "preexisting from when cap-primitives was imported"
)]
#![allow(
clippy::unnecessary_fallible_conversions,
reason = "platform-agnostic code can't always take advantage of this"
)]
#![allow(
clippy::allow_attributes_without_reason,
reason = "preexisting from when cap-primitives was imported"
)]
mod create_dir;
mod dir_entry;
mod dir_options;
mod file_type;
mod follow_symlinks;
mod hard_link;
mod maybe_owned_file;
mod metadata;
mod open;
mod open_dir;
mod open_options;
mod open_unchecked_error;
mod read_dir;
mod read_link;
mod remove_dir;
mod remove_file;
mod rename;
mod set_times;
mod stat;
mod symlink;
pub(crate) mod errors;
pub(crate) mod manually;
pub(crate) mod via_parent;
use maybe_owned_file::MaybeOwnedFile;
pub(crate) use open_unchecked_error::*;
#[cfg(not(windows))]
mod rustix;
#[cfg(not(windows))]
pub(crate) use self::rustix::fs::*;
#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub(crate) use self::windows::fs::*;
pub use create_dir::create_dir;
pub use dir_entry::DirEntry;
pub use dir_options::DirOptions;
#[cfg(windows)]
pub use file_type::_WindowsFileTypeExt;
pub use file_type::FileType;
#[cfg(any(unix, target_os = "vxworks"))]
pub use file_type::FileTypeExt;
pub use follow_symlinks::FollowSymlinks;
pub use hard_link::hard_link;
#[cfg(windows)]
pub use metadata::_WindowsByHandle;
pub use metadata::{Metadata, MetadataExt};
pub use open::open;
pub use open_dir::*;
pub use open_options::*;
pub use read_dir::read_base_dir;
pub use read_link::read_link;
pub use remove_dir::remove_dir;
pub use remove_file::remove_file;
pub use rename::rename;
pub use set_times::{set_times, set_times_nofollow};
pub use stat::stat;
#[cfg(not(windows))]
pub use symlink::symlink;
#[cfg(windows)]
pub use symlink::{symlink_dir, symlink_file};
#[cfg(test)]
mod tests;