f00-core 0.7.1

Core listing, sorting, and filtering for f00
Documentation
use std::path::PathBuf;

/// Errors produced while reading the filesystem.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("failed to read directory {path}: {source}")]
    ReadDir {
        path: PathBuf,
        source: std::io::Error,
    },
    #[error("failed to read metadata for {path}: {source}")]
    Metadata {
        path: PathBuf,
        source: std::io::Error,
    },
    #[error("path not found: {0}")]
    NotFound(PathBuf),
    #[error(transparent)]
    Io(#[from] std::io::Error),
}

pub type Result<T> = std::result::Result<T, Error>;