mod file_types;
mod filey;
mod macros;
#[cfg(target_family = "unix")]
mod permissions;
mod test;
pub mod units;
pub use crate::{file_types::FileTypes, filey::Filey, permissions::Permissions};
#[derive(Debug, thiserror::Error)]
#[error(transparent)]
pub enum Error {
FileyError(anyhow::Error),
#[error("'{}' already exists", path)]
AlreadyExists {
path: String,
},
#[error("Could not get the name of '{}'", path)]
GetFileNameError {
path: String,
},
}
pub type Result<T> = std::result::Result<T, crate::Error>;