qubit-fs 0.2.0

Provider-neutral synchronous and asynchronous filesystem abstraction for Rust
Documentation
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! File kind model.

/// Provider-neutral resource kind.
///
/// # Examples
///
/// ```rust
/// use qubit_fs::metadata::FileKind;
///
/// assert!(matches!(FileKind::File, FileKind::File));
/// ```
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum FileKind {
    /// Regular file.
    File,
    /// Directory with hierarchical semantics.
    Directory,
    /// Symbolic link.
    Symlink,
    /// Object-store object.
    Object,
    /// Object-store prefix or WebDAV collection-like prefix.
    Prefix,
    /// Provider-specific resource type.
    Other(
        /// Provider-defined resource kind name.
        String,
    ),
}