tauri_sys::fs

Function read_dir_all

source
pub async fn read_dir_all(
    path: &Path,
    dir: BaseDirectory,
) -> Result<Vec<FileEntry>, Error>
Expand description

List directory files recursively.

ยงExample

use tauri_sys::fs;

let files = fs::read_dir_all(path, BaseDirectory::Download).expect("could not read directory");

Requires allowlist > fs > readDir to be enabled.