fast-fs 0.2.1

High-speed async file system traversal library with batteries-included file browser component
Documentation
// <FILE>crates/fast-fs/src/error.rs</FILE> - <DESC>Error types</DESC>
// <VERS>VERSION: 0.2.0 - 2025-12-07T16:58:06Z</VERS>
// <WCTX>Moved to root for visibility</WCTX>
// <CLOG>Unchanged content</CLOG>

//! Error types for fast-fs
use std::path::PathBuf;
use thiserror::Error;
/// Error type for fast-fs operations
#[derive(Error, Debug)]
pub enum Error {
    /// An I/O error occurred during a file system operation
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    /// The specified path does not exist
    #[error("Path not found: {0}")]
    NotFound(PathBuf),

    /// The path exists but is not a directory (when a directory was expected)
    #[error("Not a directory: {0}")]
    NotDirectory(PathBuf),
}

// <FILE>crates/fast-fs/src/error.rs</FILE> - <DESC>Error types</DESC>
// <VERS>END OF VERSION: 0.2.0 - 2025-12-07T16:58:06Z</VERS>