dirwalk 1.1.1

Platform-optimized recursive directory walker with metadata
Documentation
use std::path::{Path, PathBuf};

/// Path to the persistent test fixture directory.
/// Created once via `just test-fixtures`, reused across all test runs.
///
/// Tree layout:
///
/// ```text
/// <root>/
///   a.txt       (10 bytes)
///   b.rs        (20 bytes)
///   .hidden     (5 bytes)
///   Makefile    (4 bytes)
///   sub/
///     c.txt     (15 bytes)
///     deep/
///       d.md    (8 bytes)
///   empty/
/// ```
///
/// Totals (unix): 7 files, 3 dirs — includes `link.txt -> a.txt` symlink.
/// Totals (non-unix): 6 files, 3 dirs, 62 bytes — symlink creation requires elevated privileges on Windows.
pub fn fixture_path() -> PathBuf {
    let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures");
    assert!(
        path.exists(),
        "test fixture not found at {}. Run `just test-fixtures` first.",
        path.display()
    );
    path
}