1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// <FILE>crates/fast-fs/src/nav/fnc_browser_flat.rs</FILE> - <DESC>Flat-mode directory loader for Browser</DESC>
// <VERS>VERSION: 0.1.0</VERS>
// <WCTX>Adding bounded recursive walk (flat mode) to Browser</WCTX>
// <CLOG>Initial creation: load entries recursively for flat-mode browsing</CLOG>
//! Flat-mode directory loader
//!
//! In flat mode, a `Browser` displays all descendants of `current_path` as a
//! single flat list instead of just the current directory. This module wraps
//! `read_dir_recursive` to produce that list using the browser's existing
//! traversal options.
//!
//! The loader intentionally mirrors the traversal behaviour that `load_directory`
//! would apply (hidden files, gitignore) so the built-in filter pipeline
//! continues to work unchanged.
use crate::;
use crateNavError;
use Path;
/// Load a flat list of entries rooted at `path`, bounded by `depth`.
///
/// * `depth == None` — unlimited recursion.
/// * `depth == Some(n)` — at most `n` levels below `path` (so `Some(0)` is
/// equivalent to a non-recursive listing).
///
/// `include_hidden` mirrors `BrowserConfig::show_hidden`; `respect_ignore_files`
/// mirrors the equivalent config knob. Directories are included in the output
/// so downstream rendering can distinguish them, but the consumer is expected
/// to treat the listing as flat (no `cd` into children).
pub async
// <FILE>crates/fast-fs/src/nav/fnc_browser_flat.rs</FILE>
// <VERS>END OF VERSION: 0.1.0</VERS>