Skip to main content

quick_list

Function quick_list 

Source
pub fn quick_list(
    path: &Path,
    config: Option<&ScanConfig>,
) -> Result<FileTree, ScanError>
Expand description

Create a quick, non-recursive directory listing for immediate display. This function reads only the immediate children of a directory without recursing into subdirectories. Directory sizes cover only their own allocation until a full scan.

Warnings encountered during the listing are included in the returned FileTree rather than being silently dropped.

The config parameter controls whether hidden files are shown. Pass None to use a default config (hidden files included).