fast-fs 0.2.1

High-speed async file system traversal library with batteries-included file browser component
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// <FILE>crates/fast-fs/src/reader/fnc_read_dir_visible.rs</FILE> - <DESC>Visible file reader</DESC>
// <VERS>VERSION: 0.2.0 - 2025-12-07T16:58:06Z</VERS>
// <WCTX>Extracted from reader.rs</WCTX>
// <CLOG>OFPF migration</CLOG>

//! Read visible files only
use super::fnc_read_dir::read_dir;
use crate::{FileEntry, Result};
use std::path::Path;
/// Read directory entries, filtering hidden files
pub async fn read_dir_visible(path: impl AsRef<Path>) -> Result<Vec<FileEntry>> {
    let entries = read_dir(path).await?;
    Ok(entries.into_iter().filter(|e| !e.is_hidden).collect())
}

// <FILE>crates/fast-fs/src/reader/fnc_read_dir_visible.rs</FILE> - <DESC>Visible file reader</DESC>
// <VERS>END OF VERSION: 0.2.0 - 2025-12-07T16:58:06Z</VERS>